Class OrbitalCallInState

java.lang.Object
idlab.colonyops.model.OrbitalCallInState

public class OrbitalCallInState extends Object
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 Details

    • OrbitalCallInState

      public OrbitalCallInState()
      Default constructor for deserialization purposes.
    • OrbitalCallInState

      public OrbitalCallInState(OrbitalCallInCommand id, int cooldownTime)
      Parameters:
      id - the orbital call-in command this state tracks
      cooldownTime - turns remaining before the command is available again
  • Method Details

    • getId

      public OrbitalCallInCommand getId()
    • setId

      public void setId(OrbitalCallInCommand id)
    • 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:
      true if the cooldown has expired and the command can be used this turn