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.ThinkThe 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 voidaddUpgrade(KitchenUpgrade upgrade)float[]getColor()Get color float [ ].intgetCurAnimation()Gets cur animation.DirectiongetDirection()Gets direction.KitchenDishgetDish()Gets dish.intgetId()Gets id.KitchenIngredientgetIngredient()Gets ingredient.floatgetLineWidth()Gets line width.OrdergetOrder()Gets order.intgetPoints()Gets points.VectorgetPosition()Gets position.floatgetRadius()Gets radius.KitchenSpicegetSpice()Gets spice.KitchenUpgradegetUpgrade()java.util.List<KitchenUpgrade>getUpgrades()VectorgetVector()Gets vector.WaitHelpergetWaitHelper()Gets wait helper.booleanhasUpgrade(KitchenUpgrade upgrade)booleanintersects(com.apogames.kitchenchef.entity.ApoEntity entity)Intersects boolean.booleanisCustomer()Is customer boolean.booleanisOnActionPoint()Is on action point boolean.voidrender(com.apogames.kitchenchef.backend.GameScreen screen, int x, int y)Render.voidrenderFill(com.apogames.kitchenchef.backend.GameScreen screen, int x, int y)Render fill.voidrenderPicture(com.apogames.kitchenchef.backend.GameScreen screen, float x, float y)Render picture.voidrenderPicture(com.apogames.kitchenchef.backend.GameScreen screen, float x, float y, float goalWidth, float goalHeight)Render picture.voidsetColor(float[] color)Sets color.voidsetCurAnimation(int curAnimation)Sets cur animation.voidsetCustomer(boolean customer, int addX, int addY)Sets customer.voidsetDish(KitchenDish dish)Sets dish.voidsetIngredient(KitchenIngredient ingredient)Sets ingredient.voidsetLineWidth(float lineWidth)Sets line width.voidsetOnActionPoint(boolean onActionPoint)Sets on action point.voidsetOrder(Order order)Sets order.voidsetPoints(float points)Sets points.voidsetPosition(Vector position)Sets position.voidsetSpice(KitchenSpice spice)Sets spice.voidsetUpgrade(KitchenUpgrade upgrade)voidsetVector(Vector vector)Sets vector.voidsetWaitHelper(WaitHelper waitHelper)Sets wait helper.voidthink(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.ThinkThink.- Specified by:
thinkin 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
-
-