Class OrbitalCallInState
java.lang.Object
idlab.colonyops.model.OrbitalCallInState
The current cooldown state of one unlocked
OrbitalCallInCommand.
After a call-in command is used, it cannot be used again until its cooldown timer reaches zero. Tech research can reduce a command's cooldown duration.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for deserialization purposes.OrbitalCallInState(OrbitalCallInCommand id, int cooldownTime) -
Method Summary
Modifier and TypeMethodDescriptionintgetId()intbooleanvoidsetCooldownTime(int cooldownTime) voidvoidsetResetCooldownTimeValue(int resetCooldownTimeValue)
-
Constructor Details
-
OrbitalCallInState
public OrbitalCallInState()Default constructor for deserialization purposes. -
OrbitalCallInState
- Parameters:
id- the orbital call-in command this state trackscooldownTime- turns remaining before the command is available again
-
-
Method Details
-
getId
-
setId
-
getCooldownTime
public int getCooldownTime() -
setCooldownTime
public void setCooldownTime(int cooldownTime) -
getResetCooldownTimeValue
public int getResetCooldownTimeValue()- Returns:
- the cooldown duration (in turns) that
getCooldownTime()resets to after the command is used
-
setResetCooldownTimeValue
public void setResetCooldownTimeValue(int resetCooldownTimeValue) -
isAvailable
public boolean isAvailable()- Returns:
trueif the cooldown has expired and the command can be used this turn
-