Class OfficerDuelBuiltInScenario
java.lang.Object
mekhq.campaign.mission.Scenario
mekhq.campaign.mission.AtBScenario
mekhq.campaign.mission.atb.scenario.OfficerDuelBuiltInScenario
- All Implemented Interfaces:
IAtBScenario
,IPlayerSettings
-
Field Summary
Fields inherited from class mekhq.campaign.mission.AtBScenario
ACEDUEL, ALLIEDTRAITORS, ALLYRESCUE, AMBUSH, antiRiotWeapons, BASEATTACK, BREAKTHROUGH, CHASE, CIVILIANHELP, CIVILIANRIOT, CONVOYATTACK, CONVOYRESCUE, defaultResourceBundle, DYNAMIC, EXTRACTION, FORCE_AERO, FORCE_BA, FORCE_INFANTRY, FORCE_MEK, FORCE_MIXED, FORCE_NOVA, FORCE_PROTOMEK, FORCE_VEENOVA, FORCE_VEHICLE, forceTypeNames, HIDEANDSEEK, HOLDTHELINE, NO_COMBAT_TEAM, OFFICERDUEL, PIRATEFREEFORALL, PRISONBREAK, PROBE, RECONRAID, STANDUP, STARLEAGUECACHE1, STARLEAGUECACHE2, startPos
Fields inherited from class mekhq.campaign.mission.Scenario
atmosphere, botForces, botForcesStubs, fog, gravity, light, S_DEFAULT_ID, T_ATMOSPHERE, T_GROUND, T_SPACE, weather, wind
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Determines whether a unit is eligible to deploy to the scenario.boolean
boolean
boolean
int
boolean
void
setExtraScenarioForces
(Campaign campaign, ArrayList<megamek.common.Entity> allyEntities, ArrayList<megamek.common.Entity> enemyEntities) void
void
void
setObjectives
(Campaign campaign, AtBContract contract) void
Methods inherited from class mekhq.campaign.mission.AtBScenario
addAeroReinforcements, addCivilianUnits, addDropship, addEnemyForce, addEnemyForce, addLance, addLance, addScrubReinforcements, addTransportRelationship, addTurrets, canAddDropShips, canDeploy, canDeployForces, canDeployUnits, canRerollMapSize, canRerollTerrain, canStartScenario, filterUntransportedUnits, generateStub, getAlliesPlayer, getAlliesPlayerStub, getAllyBotForce, getAttachedUnitIds, getBaseMapX, getBaseMapY, getBattlefieldControlDescription, getCombatRole, getCombatTeamById, getCombatTeamId, getContract, getCsvFromList, getDeploymentDelay, getDeploymentInstructions, getDesc, getEnemyBotForce, getEnemyBotForce, getEnemyHome, getEntity, getEntity, getForceCount, getMapX, getMapY, getModifiedTemperature, getNumPlayerMinefields, getRerollsRemaining, getResourceBundle, getSpecialScenarioEnemies, getStratconScenario, getSurvivalBonusIds, getTerrainType, getTransportLinkages, initialize, isAttacker, isBigBattle, isFriendlyUnit, isStandardScenario, loadFieldsFromXmlNode, refresh, setAttacker, setCombatTeam, setDeploymentDelay, setEnemyHome, setForceCount, setForces, setMapFile, setMapSize, setModifiedTemperature, setNumPlayerMinefields, setPlanetaryConditions, setRerolls, setScenarioMap, setTerrain, setTerrainType, setTransportLinkages, useReroll, writeToXMLEnd
Methods inherited from class mekhq.campaign.mission.Scenario
addBotForce, addForces, addLoot, addPlayerTransportRelationship, addUnit, canWindShiftDirection, canWindShiftStrength, clearAllForcesAndPersonnel, containsPlayerUnit, convertToStub, createPlanetaryConditions, generateInstanceFromXML, getAtmosphere, getBlowingSand, getBoardType, getBoardTypeName, getBotForce, getBotForces, getBotForcesStubs, getDate, getDeploymentLimit, getDescription, getEMI, getEntityStub, getExternalIDLookup, getFog, getForceIDs, getForces, getForceStub, getGravity, getHasTrack, getId, getIndividualUnitIDs, getLight, getLinkedScenario, getLoot, getMap, getMapForDisplay, getMapSizeX, getMapSizeY, getMaxWindStrength, getMinWindStrength, getMissionId, getName, getNumBots, getPlayerTransportLinkages, getReport, getScenarioObjectives, getStartingAnyNWx, getStartingAnyNWy, getStartingAnySEx, getStartingAnySEy, getStartingPos, getStartOffset, getStartWidth, getStatus, getStratConScenarioType, getTemperature, getTraitorUnits, getWeather, getWind, hasObjectives, includesRequiredPersonnel, includesRequiredUnits, isAssigned, isCloaked, isTraitor, isTraitor, isUsingFixedMap, readPlanetaryConditions, removeBotForce, removeForce, removeUnit, resetLoot, setAtmosphere, setBlowingSand, setBoardType, setBotForces, setCloaked, setDate, setDeploymentLimit, setDesc, setEMI, setExternalIDLookup, setFog, setGravity, setHasTrack, setId, setLight, setlinkedScenarioID, setMap, setMapSizeX, setMapSizeY, setMaxWindStrength, setMinWindStrength, setMissionId, setName, setReport, setScenarioObjectives, setShiftWindDirection, setShiftWindStrength, setStartingAnyNWx, setStartingAnyNWy, setStartingAnySEx, setStartingAnySEy, setStartingPos, setStartOffset, setStartWidth, setStatus, setStratConScenarioType, setTemperature, setUsingFixedMap, setWeather, setWind, writeToXML, writeToXMLBegin
-
Constructor Details
-
OfficerDuelBuiltInScenario
public OfficerDuelBuiltInScenario()
-
-
Method Details
-
isSpecialScenario
public boolean isSpecialScenario()- Specified by:
isSpecialScenario
in interfaceIAtBScenario
- Overrides:
isSpecialScenario
in classAtBScenario
-
getScenarioType
public int getScenarioType() -
getScenarioTypeDescription
-
getResourceKey
-
setLightConditions
public void setLightConditions()- Overrides:
setLightConditions
in classAtBScenario
-
setWeatherConditions
public void setWeatherConditions()- Overrides:
setWeatherConditions
in classAtBScenario
-
setMapFile
public void setMapFile()- Overrides:
setMapFile
in classAtBScenario
-
canRerollMap
public boolean canRerollMap()- Overrides:
canRerollMap
in classAtBScenario
-
canRerollLight
public boolean canRerollLight()- Overrides:
canRerollLight
in classAtBScenario
-
canRerollWeather
public boolean canRerollWeather()- Overrides:
canRerollWeather
in classAtBScenario
-
canDeploy
Description copied from class:AtBScenario
Determines whether a unit is eligible to deploy to the scenario. The default is true, but some special scenarios and big battles restrict the participants.- Overrides:
canDeploy
in classAtBScenario
- Parameters:
unit
- - The Unit to be deployedcampaign
- - a pointer to the Campaign- Returns:
- true if the unit is eligible, otherwise false
-
setExtraScenarioForces
public void setExtraScenarioForces(Campaign campaign, ArrayList<megamek.common.Entity> allyEntities, ArrayList<megamek.common.Entity> enemyEntities) - Specified by:
setExtraScenarioForces
in interfaceIAtBScenario
- Overrides:
setExtraScenarioForces
in classAtBScenario
-
setObjectives
- Overrides:
setObjectives
in classAtBScenario
-