Class KitchenPlayer
- java.lang.Object
-
- com.apogames.kitchenchef.game.entity.KitchenPlayer
-
- All Implemented Interfaces:
com.apogames.kitchenchef.game.interfaces.Think
public class KitchenPlayer extends java.lang.Object implements com.apogames.kitchenchef.game.interfaces.Think
The type Kitchen player.
-
-
Constructor Summary
Constructors Constructor Description KitchenPlayer(float x, float y, float radius, float[] color, int id)
Instantiates a new Kitchen player.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addUpgrade(KitchenUpgrade upgrade)
float[]
getColor()
Get color float [ ].int
getCurAnimation()
Gets cur animation.Direction
getDirection()
Gets direction.KitchenDish
getDish()
Gets dish.int
getId()
Gets id.KitchenIngredient
getIngredient()
Gets ingredient.float
getLineWidth()
Gets line width.Order
getOrder()
Gets order.int
getPoints()
Gets points.Vector
getPosition()
Gets position.float
getRadius()
Gets radius.KitchenSpice
getSpice()
Gets spice.KitchenUpgrade
getUpgrade()
java.util.List<KitchenUpgrade>
getUpgrades()
Vector
getVector()
Gets vector.WaitHelper
getWaitHelper()
Gets wait helper.boolean
hasUpgrade(KitchenUpgrade upgrade)
boolean
intersects(com.apogames.kitchenchef.entity.ApoEntity entity)
Intersects boolean.boolean
isCustomer()
Is customer boolean.boolean
isOnActionPoint()
Is on action point boolean.void
render(com.apogames.kitchenchef.backend.GameScreen screen, int x, int y)
Render.void
renderFill(com.apogames.kitchenchef.backend.GameScreen screen, int x, int y)
Render fill.void
renderPicture(com.apogames.kitchenchef.backend.GameScreen screen, float x, float y)
Render picture.void
renderPicture(com.apogames.kitchenchef.backend.GameScreen screen, float x, float y, float goalWidth, float goalHeight)
Render picture.void
setColor(float[] color)
Sets color.void
setCurAnimation(int curAnimation)
Sets cur animation.void
setCustomer(boolean customer, int addX, int addY)
Sets customer.void
setDish(KitchenDish dish)
Sets dish.void
setIngredient(KitchenIngredient ingredient)
Sets ingredient.void
setLineWidth(float lineWidth)
Sets line width.void
setOnActionPoint(boolean onActionPoint)
Sets on action point.void
setOrder(Order order)
Sets order.void
setPoints(float points)
Sets points.void
setPosition(Vector position)
Sets position.void
setSpice(KitchenSpice spice)
Sets spice.void
setUpgrade(KitchenUpgrade upgrade)
void
setVector(Vector vector)
Sets vector.void
setWaitHelper(WaitHelper waitHelper)
Sets wait helper.void
think(float delta)
Think.
-
-
-
Method Detail
-
getId
public int getId()
Gets id.- Returns:
- the id
-
isCustomer
public boolean isCustomer()
Is customer boolean.- Returns:
- the boolean
-
setCustomer
public void setCustomer(boolean customer, int addX, int addY)
Sets customer.- Parameters:
customer
- the customeraddX
- the add xaddY
- the add y
-
getDish
public KitchenDish getDish()
Gets dish.- Returns:
- the dish
-
setDish
public void setDish(KitchenDish dish)
Sets dish.- Parameters:
dish
- the dish
-
getIngredient
public KitchenIngredient getIngredient()
Gets ingredient.- Returns:
- the ingredient
-
setIngredient
public void setIngredient(KitchenIngredient ingredient)
Sets ingredient.- Parameters:
ingredient
- the ingredient
-
getSpice
public KitchenSpice getSpice()
Gets spice.- Returns:
- the spice
-
setSpice
public void setSpice(KitchenSpice spice)
Sets spice.- Parameters:
spice
- the spice
-
getUpgrade
public KitchenUpgrade getUpgrade()
-
setUpgrade
public void setUpgrade(KitchenUpgrade upgrade)
-
getPoints
public int getPoints()
Gets points.- Returns:
- the points
-
setPoints
public void setPoints(float points)
Sets points.- Parameters:
points
- the points
-
getWaitHelper
public WaitHelper getWaitHelper()
Gets wait helper.- Returns:
- the wait helper
-
setWaitHelper
public void setWaitHelper(WaitHelper waitHelper)
Sets wait helper.- Parameters:
waitHelper
- the wait helper
-
getPosition
public Vector getPosition()
Gets position.- Returns:
- the position
-
setPosition
public void setPosition(Vector position)
Sets position.- Parameters:
position
- the position
-
getRadius
public float getRadius()
Gets radius.- Returns:
- the radius
-
getColor
public float[] getColor()
Get color float [ ].- Returns:
- the float [ ]
-
setColor
public void setColor(float[] color)
Sets color.- Parameters:
color
- the color
-
getDirection
public Direction getDirection()
Gets direction.- Returns:
- the direction
-
getVector
public Vector getVector()
Gets vector.- Returns:
- the vector
-
setVector
public void setVector(Vector vector)
Sets vector.- Parameters:
vector
- the vector
-
getOrder
public Order getOrder()
Gets order.- Returns:
- the order
-
setOrder
public void setOrder(Order order)
Sets order.- Parameters:
order
- the order
-
getLineWidth
public float getLineWidth()
Gets line width.- Returns:
- the line width
-
setLineWidth
public void setLineWidth(float lineWidth)
Sets line width.- Parameters:
lineWidth
- the line width
-
isOnActionPoint
public boolean isOnActionPoint()
Is on action point boolean.- Returns:
- the boolean
-
setOnActionPoint
public void setOnActionPoint(boolean onActionPoint)
Sets on action point.- Parameters:
onActionPoint
- the on action point
-
getCurAnimation
public int getCurAnimation()
Gets cur animation.- Returns:
- the cur animation
-
setCurAnimation
public void setCurAnimation(int curAnimation)
Sets cur animation.- Parameters:
curAnimation
- the cur animation
-
getUpgrades
public java.util.List<KitchenUpgrade> getUpgrades()
-
addUpgrade
public void addUpgrade(KitchenUpgrade upgrade)
-
hasUpgrade
public boolean hasUpgrade(KitchenUpgrade upgrade)
-
intersects
public boolean intersects(com.apogames.kitchenchef.entity.ApoEntity entity)
Intersects boolean.- Parameters:
entity
- the entity- Returns:
- the boolean
-
think
public void think(float delta)
Description copied from interface:com.apogames.kitchenchef.game.interfaces.Think
Think.- Specified by:
think
in interfacecom.apogames.kitchenchef.game.interfaces.Think
- Parameters:
delta
- the delta
-
render
public void render(com.apogames.kitchenchef.backend.GameScreen screen, int x, int y)
Render.- Parameters:
screen
- the screenx
- the xy
- the y
-
renderFill
public void renderFill(com.apogames.kitchenchef.backend.GameScreen screen, int x, int y)
Render fill.- Parameters:
screen
- the screenx
- the xy
- the y
-
renderPicture
public void renderPicture(com.apogames.kitchenchef.backend.GameScreen screen, float x, float y)
Render picture.- Parameters:
screen
- the screenx
- the xy
- the y
-
renderPicture
public void renderPicture(com.apogames.kitchenchef.backend.GameScreen screen, float x, float y, float goalWidth, float goalHeight)
Render picture.- Parameters:
screen
- the screenx
- the xy
- the ygoalWidth
- the goal widthgoalHeight
- the goal height
-
-