Class AdvanceAutoDelayState

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

public class AdvanceAutoDelayState extends Object implements ActionState
Advance auto delay state.
  • Constructor Summary

    Constructors
    Constructor
    Description
    AdvanceAutoDelayState(int durationMs)
    Create an advance auto delay state with a given duration in Milliseconds
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Checks if the action is blocking till completion (false if async)
    boolean
    Checks if the action is completed (can be disposed of)
    void
    tick(int dtMs)
    Runs on every game tick to progress logic

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AdvanceAutoDelayState

      public AdvanceAutoDelayState(int durationMs)
      Create an advance auto delay state with a given duration in Milliseconds
      Parameters:
      durationMs - The delay duration in milliseconds
  • 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)