Class WaitHelper
- java.lang.Object
-
- com.apogames.kitchenchef.game.entity.WaitHelper
-
- All Implemented Interfaces:
com.apogames.kitchenchef.game.interfaces.Think
public class WaitHelper extends java.lang.Object implements com.apogames.kitchenchef.game.interfaces.ThinkThe type Wait helper.
-
-
Field Summary
Fields Modifier and Type Field Description static intOVERTIMEThe constant OVERTIME.
-
Constructor Summary
Constructors Constructor Description WaitHelper(float maxTimer, Order order)Instantiates a new Wait helper.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WaitHelpergetClone()Gets clone.floatgetLeftTime()Gets left time.floatgetMaxTimer()Gets max timer.OrdergetOrder()Gets order.floatgetTimer()Gets timer.booleanisReady()Is ready boolean.booleanisRotten()Is rotten boolean.voidthink(float delta)Think.
-
-
-
Field Detail
-
OVERTIME
public static final int OVERTIME
The constant OVERTIME.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
WaitHelper
public WaitHelper(float maxTimer, Order order)Instantiates a new Wait helper.- Parameters:
maxTimer- the max timerorder- the order
-
-
Method Detail
-
getClone
public WaitHelper getClone()
Gets clone.- Returns:
- the clone
-
getMaxTimer
public float getMaxTimer()
Gets max timer.- Returns:
- the max timer
-
getTimer
public float getTimer()
Gets timer.- Returns:
- the timer
-
getOrder
public Order getOrder()
Gets order.- Returns:
- the order
-
isReady
public boolean isReady()
Is ready boolean.- Returns:
- the boolean
-
isRotten
public boolean isRotten()
Is rotten boolean.- Returns:
- the boolean
-
getLeftTime
public float getLeftTime()
Gets left time.- Returns:
- the left time
-
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
-
-