Record Class MissionControl

java.lang.Object
java.lang.Record
idlab.colonyops.model.MissionControl
Record Components:
activeEffects - the tech tree effects currently unlocked for this colony
landingCraftLocation - the current location of the colony's landing craft
extractedResources - resources secured so far this mission (deposited or airlifted), keyed by resource type
wipeoutRespawnCountdown - turns remaining until the squad respawns after a full wipeout, present only while the colony has no living squad members
squadCap - the maximum number of squad members the colony may field, determined by Population
orbitalCallIns - the cooldown state of each orbital call-in command unlocked so far
activeTurrets - the number of turrets the colony currently has deployed
resourceScanTimeLeft - turns remaining until the next orbital scan discovers a large deposit
baseResourceScanTime - the scan cooldown duration the timer resets to (after tech reductions)
maxTurrets - the maximum number of concurrent turrets the colony may deploy, determined by tech research
jetpackMoveRange - the movement range granted while a squad member's Jetpack consumable is active

public record MissionControl(List<TechEffect> activeEffects, Location landingCraftLocation, Map<ResourceType, Integer> extractedResources, Optional<Integer> wipeoutRespawnCountdown, int squadCap, List<OrbitalCallInState> orbitalCallIns, int activeTurrets, int resourceScanTimeLeft, int baseResourceScanTime, int maxTurrets, int jetpackMoveRange) extends Record
The colony's mission-scoped state, sent to the player's logic service as part of every Mission update (e.g. PUT /missions/{missionId}).

This reflects the strategic layer's influence on the current mission: unlocked TechEffects, orbital call-in cooldowns, and resources secured so far.

  • Constructor Details

  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • activeEffects

      public List<TechEffect> activeEffects()
      Returns the value of the activeEffects record component.
      Returns:
      the value of the activeEffects record component
    • landingCraftLocation

      public Location landingCraftLocation()
      Returns the value of the landingCraftLocation record component.
      Returns:
      the value of the landingCraftLocation record component
    • extractedResources

      public Map<ResourceType, Integer> extractedResources()
      Returns the value of the extractedResources record component.
      Returns:
      the value of the extractedResources record component
    • wipeoutRespawnCountdown

      public Optional<Integer> wipeoutRespawnCountdown()
      Returns the value of the wipeoutRespawnCountdown record component.
      Returns:
      the value of the wipeoutRespawnCountdown record component
    • squadCap

      public int squadCap()
      Returns the value of the squadCap record component.
      Returns:
      the value of the squadCap record component
    • orbitalCallIns

      public List<OrbitalCallInState> orbitalCallIns()
      Returns the value of the orbitalCallIns record component.
      Returns:
      the value of the orbitalCallIns record component
    • activeTurrets

      public int activeTurrets()
      Returns the value of the activeTurrets record component.
      Returns:
      the value of the activeTurrets record component
    • resourceScanTimeLeft

      public int resourceScanTimeLeft()
      Returns the value of the resourceScanTimeLeft record component.
      Returns:
      the value of the resourceScanTimeLeft record component
    • baseResourceScanTime

      public int baseResourceScanTime()
      Returns the value of the baseResourceScanTime record component.
      Returns:
      the value of the baseResourceScanTime record component
    • maxTurrets

      public int maxTurrets()
      Returns the value of the maxTurrets record component.
      Returns:
      the value of the maxTurrets record component
    • jetpackMoveRange

      public int jetpackMoveRange()
      Returns the value of the jetpackMoveRange record component.
      Returns:
      the value of the jetpackMoveRange record component