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.Think
The type Wait helper.
-
-
Field Summary
Fields Modifier and Type Field Description static int
OVERTIME
The 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 WaitHelper
getClone()
Gets clone.float
getLeftTime()
Gets left time.float
getMaxTimer()
Gets max timer.Order
getOrder()
Gets order.float
getTimer()
Gets timer.boolean
isReady()
Is ready boolean.boolean
isRotten()
Is rotten boolean.void
think(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.Think
Think.- Specified by:
think
in interfacecom.apogames.kitchenchef.game.interfaces.Think
- Parameters:
delta
- the delta
-
-