Class AdvanceAutoState

java.lang.Object
com.csse3200.game.cutscene.runtime.states.AdvanceAutoState
All Implemented Interfaces:
ActionState

public class AdvanceAutoState extends Object implements ActionState
Advance automatically
  • Constructor Details

    • AdvanceAutoState

      public AdvanceAutoState()
  • Method Details

    • tick

      public void tick(int dtMs)
      Runs on every game tick to progress logic
      Specified by:
      tick in interface ActionState
      Parameters:
      dtMs - The delta time in milliseconds
    • blocking

      public boolean blocking()
      Checks if the action is blocking till completion (false if async)
      Specified by:
      blocking in interface ActionState
      Returns:
      True if the action is blocking till completion (false if async)
    • done

      public boolean done()
      Checks if the action is completed (can be disposed of)
      Specified by:
      done in interface ActionState
      Returns:
      True if the action is completed (can be disposed of)