Class AdvanceInputState
java.lang.Object
com.csse3200.game.cutscene.runtime.states.AdvanceInputState
- All Implemented Interfaces:
ActionState
,SupportsAdvance
Advance on key input
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
advance()
Advances theActionState
from an external code sourceboolean
blocking()
Checks if the action is blocking till completion (false if async)boolean
done()
Checks if the action is completed (can be disposed of)void
tick
(int dtMs) Runs on every game tick to progress logic
-
Constructor Details
-
AdvanceInputState
public AdvanceInputState()
-
-
Method Details
-
tick
public void tick(int dtMs) Runs on every game tick to progress logic- Specified by:
tick
in interfaceActionState
- 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 interfaceActionState
- 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 interfaceActionState
- Returns:
- True if the action is completed (can be disposed of)
-
advance
public void advance()Advances theActionState
from an external code source- Specified by:
advance
in interfaceSupportsAdvance
-