Record Class MissionControl
java.lang.Object
java.lang.Record
idlab.colonyops.model.MissionControl
- Record Components:
activeEffects- the tech tree effects currently unlocked for this colonylandingCraftLocation- the current location of the colony's landing craftextractedResources- resources secured so far this mission (deposited or airlifted), keyed by resource typewipeoutRespawnCountdown- turns remaining until the squad respawns after a full wipeout, present only while the colony has no living squad memberssquadCap- the maximum number of squad members the colony may field, determined by PopulationorbitalCallIns- the cooldown state of each orbital call-in command unlocked so faractiveTurrets- the number of turrets the colony currently has deployedresourceScanTimeLeft- turns remaining until the next orbital scan discovers a large depositbaseResourceScanTime- 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 researchjetpackMoveRange- 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 Summary
ConstructorsConstructorDescriptionMissionControl(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) Creates an instance of aMissionControlrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theactiveEffectsrecord component.intReturns the value of theactiveTurretsrecord component.intReturns the value of thebaseResourceScanTimerecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theextractedResourcesrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of thejetpackMoveRangerecord component.Returns the value of thelandingCraftLocationrecord component.intReturns the value of themaxTurretsrecord component.Returns the value of theorbitalCallInsrecord component.intReturns the value of theresourceScanTimeLeftrecord component.intsquadCap()Returns the value of thesquadCaprecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thewipeoutRespawnCountdownrecord component.
-
Constructor Details
-
MissionControl
public 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) Creates an instance of aMissionControlrecord class.- Parameters:
activeEffects- the value for theactiveEffectsrecord componentlandingCraftLocation- the value for thelandingCraftLocationrecord componentextractedResources- the value for theextractedResourcesrecord componentwipeoutRespawnCountdown- the value for thewipeoutRespawnCountdownrecord componentsquadCap- the value for thesquadCaprecord componentorbitalCallIns- the value for theorbitalCallInsrecord componentactiveTurrets- the value for theactiveTurretsrecord componentresourceScanTimeLeft- the value for theresourceScanTimeLeftrecord componentbaseResourceScanTime- the value for thebaseResourceScanTimerecord componentmaxTurrets- the value for themaxTurretsrecord componentjetpackMoveRange- the value for thejetpackMoveRangerecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
activeEffects
Returns the value of theactiveEffectsrecord component.- Returns:
- the value of the
activeEffectsrecord component
-
landingCraftLocation
Returns the value of thelandingCraftLocationrecord component.- Returns:
- the value of the
landingCraftLocationrecord component
-
extractedResources
Returns the value of theextractedResourcesrecord component.- Returns:
- the value of the
extractedResourcesrecord component
-
wipeoutRespawnCountdown
Returns the value of thewipeoutRespawnCountdownrecord component.- Returns:
- the value of the
wipeoutRespawnCountdownrecord component
-
squadCap
-
orbitalCallIns
Returns the value of theorbitalCallInsrecord component.- Returns:
- the value of the
orbitalCallInsrecord component
-
activeTurrets
public int activeTurrets()Returns the value of theactiveTurretsrecord component.- Returns:
- the value of the
activeTurretsrecord component
-
resourceScanTimeLeft
public int resourceScanTimeLeft()Returns the value of theresourceScanTimeLeftrecord component.- Returns:
- the value of the
resourceScanTimeLeftrecord component
-
baseResourceScanTime
public int baseResourceScanTime()Returns the value of thebaseResourceScanTimerecord component.- Returns:
- the value of the
baseResourceScanTimerecord component
-
maxTurrets
public int maxTurrets()Returns the value of themaxTurretsrecord component.- Returns:
- the value of the
maxTurretsrecord component
-
jetpackMoveRange
public int jetpackMoveRange()Returns the value of thejetpackMoveRangerecord component.- Returns:
- the value of the
jetpackMoveRangerecord component
-