Class 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.
    • Constructor Detail

      • WaitHelper

        public WaitHelper​(float maxTimer,
                          Order order)
        Instantiates a new Wait helper.
        Parameters:
        maxTimer - the max timer
        order - 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 interface com.apogames.kitchenchef.game.interfaces.Think
        Parameters:
        delta - the delta