Class Advance
java.lang.Object
com.csse3200.game.cutscene.models.object.Advance
Class to store data for the Advance setting Each type of advance has their own generator.
-
Constructor Summary
ConstructorsConstructorDescriptionAdvance
(AdvanceMode mode, int delayMs, String signalKey) Creates anAdvance
with parameter details This is NOT to be used, rather use provided static methods (e.g. -
Method Summary
Modifier and TypeMethodDescriptionstatic Advance
auto()
Get anAdvance
configured forAdvanceMode.AUTO
.static Advance
autoDelay
(int ms) Get anAdvance
configured forAdvanceMode.AUTO_DELAY
.int
getMode()
static Advance
input()
Get anAdvance
configured forAdvanceMode.INPUT
.static Advance
Get anAdvance
configured forAdvanceMode.SIGNAL
.
-
Constructor Details
-
Advance
Creates anAdvance
with parameter details This is NOT to be used, rather use provided static methods (e.g.auto()
.- Parameters:
mode
- TheAdvanceMode
modedelayMs
- The delay in mssignalKey
- The signal key
-
-
Method Details
-
getMode
-
getDelayMs
public int getDelayMs() -
getSignalKey
-
input
Get anAdvance
configured forAdvanceMode.INPUT
. No delay or signal key are used.- Returns:
Advance
in INPUT mode
-
auto
Get anAdvance
configured forAdvanceMode.AUTO
. No delay or signal key are used.- Returns:
Advance
in AUTO mode
-
autoDelay
Get anAdvance
configured forAdvanceMode.AUTO_DELAY
. No signal key is set.- Parameters:
ms
- The delay (in Milliseconds) to set the advance to- Returns:
Advance
in AUTO_DELAY mode with ms set
-
signal
Get anAdvance
configured forAdvanceMode.SIGNAL
. No delay is set.- Parameters:
key
- The signal key to set- Returns:
Advance
in SIGNAL mode with key set
-