Class StratConFacility
java.lang.Object
mekhq.campaign.digitalGM.stratCon.facility.StratConFacility
- All Implemented Interfaces:
Cloneable
This represents a facility in the StratCon context
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated, for removal: This API element is subject to removal in a future version.clone()voidcopyRulesDataFrom(StratConFacility facility) Copies data from the source facility to here.voidstatic StratConFacilitydeserialize(String fileName) Attempt to deserialize an instance of a StratConFacility from the passed-in file nameintDeprecated, for removal: This API element is subject to removal in a future version.Returns the biome temperature map (note: temperature mapping is in kelvins but stored in Celsius)If present, this is the name of the definition file to draw from when switching facility ownership.booleanbooleanThis is a list of scenario modifier IDs that affect scenarios involving this facility directly.intgetOwner()intbooleanintThis is a list of scenario modifier IDs that affect scenarios in the same track as this facility.booleanvoidbooleanbooleanbooleanbooleanbooleanvoidSerialize this facility to a JSON file, led by the MegaMek Data license header.voidsetAggroRating(int rating) Deprecated, for removal: This API element is subject to removal in a future version.voidsetBiomes(List<StratConBiome> biomes) voidsetCapturedDefinition(String capturedDefinition) voidsetDisplayableName(String displayableName) voidsetFacilityType(StratConFacility.FacilityType facilityType) voidsetIncreaseScanRange(boolean increaseScanRange) voidsetIsAvailable(boolean isAvailable) voidsetLocalModifiers(List<String> localModifiers) voidsetMonthlySPModifier(int monthlySPModifier) Sets a new value for the monthly SP (Support Points) modifier.voidvoidsetPreventAerospace(boolean preventAerospace) voidsetRevealTrack(boolean revealTrack) voidsetScenarioOddsModifier(int scenarioOddsModifier) voidsetSharedModifiers(List<String> sharedModifiers) voidsetStrategicObjective(boolean isStrategicObjective) voidsetUserDescription(String userDescription) voidsetVisible(boolean visible)
-
Constructor Details
-
StratConFacility
public StratConFacility()
-
-
Method Details
-
clone
-
copyRulesDataFrom
Copies data from the source facility to here. Does cosmetic data. Reconstructs file-driven transient data. -
getOwner
-
setOwner
-
isOwnerAlliedToPlayer
public boolean isOwnerAlliedToPlayer()- Returns:
trueif the facility owner is either allied to the player or is the player themselves,falseotherwise.
-
getFormattedDisplayableName
-
getDisplayableName
-
setDisplayableName
-
getFacilityType
-
setFacilityType
-
getVisible
public boolean getVisible() -
setVisible
public void setVisible(boolean visible) -
isVisible
public boolean isVisible() -
getIsAvailable
public boolean getIsAvailable() -
setIsAvailable
public void setIsAvailable(boolean isAvailable) -
isAvailable
public boolean isAvailable() -
getLocalModifiers
This is a list of scenario modifier IDs that affect scenarios involving this facility directly. -
setLocalModifiers
-
getAggroRating
Deprecated, for removal: This API element is subject to removal in a future version. -
setAggroRating
Deprecated, for removal: This API element is subject to removal in a future version. -
isStrategicObjective
public boolean isStrategicObjective() -
setStrategicObjective
public void setStrategicObjective(boolean isStrategicObjective) -
getBiomes
-
setBiomes
-
incrementOwnershipChangeScore
public void incrementOwnershipChangeScore() -
decrementOwnershipChangeScore
public void decrementOwnershipChangeScore() -
clearOwnershipChangeScore
Deprecated, for removal: This API element is subject to removal in a future version. -
getOwnershipChangeScore
public int getOwnershipChangeScore() -
getCapturedDefinition
If present, this is the name of the definition file to draw from when switching facility ownership. -
setCapturedDefinition
-
getRevealTrack
public boolean getRevealTrack() -
setRevealTrack
public void setRevealTrack(boolean revealTrack) -
getIncreaseScanRange
public boolean getIncreaseScanRange() -
setIncreaseScanRange
public void setIncreaseScanRange(boolean increaseScanRange) -
getScenarioOddsModifier
public int getScenarioOddsModifier() -
setScenarioOddsModifier
public void setScenarioOddsModifier(int scenarioOddsModifier) -
getMonthlySPModifier
public int getMonthlySPModifier()- Returns:
- The facility's monthly SP (Support Points) modifier as an integer.
-
setMonthlySPModifier
public void setMonthlySPModifier(int monthlySPModifier) Sets a new value for the monthly SP (Support Points) modifier.- Parameters:
monthlySPModifier- The new monthly SP modifier value.
-
getBiomeTempMap
Returns the biome temperature map (note: temperature mapping is in kelvins but stored in Celsius) -
deserialize
Attempt to deserialize an instance of a StratConFacility from the passed-in file name- Returns:
- Possibly an instance of a StratConFacility
-
Serialize
Serialize this facility to a JSON file, led by the MegaMek Data license header. Please pass in a non-null file.- Parameters:
outputFile- The destination file.
-
preventAerospace
public boolean preventAerospace() -
setPreventAerospace
public void setPreventAerospace(boolean preventAerospace) -
getUserDescription
-
setUserDescription
-