Package megamek.common.units
Class LAMPilot
java.lang.Object
megamek.common.units.Crew
megamek.common.units.LAMPilot
- All Implemented Interfaces:
Serializable
Crew class for LAMs which tracks separate skills for 'Mek and Fighter modes, and chooses the correct one based on the
LAM's current movement mode.
- See Also:
-
Field Summary
Fields inherited from class megamek.common.units.Crew
DEATH, ENVIRONMENT_SPECIALIST_FOG, ENVIRONMENT_SPECIALIST_HAIL, ENVIRONMENT_SPECIALIST_LIGHT, ENVIRONMENT_SPECIALIST_NONE, ENVIRONMENT_SPECIALIST_RAIN, ENVIRONMENT_SPECIALIST_SNOW, ENVIRONMENT_SPECIALIST_WIND, HUMAN_TRO_AERO, HUMAN_TRO_BA, HUMAN_TRO_MEK, HUMAN_TRO_NONE, HUMAN_TRO_VEE, MAP_BLOOD_NAME, MAP_GIVEN_NAME, MAP_PHENOTYPE, MAP_SURNAME, MAX_SKILL, RANGEMASTER_EXTREME, RANGEMASTER_LONG, RANGEMASTER_MEDIUM, RANGEMASTER_NONE, SPECIAL_BALLISTIC, SPECIAL_ENERGY, SPECIAL_MISSILE, SPECIAL_NONE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LAMPilotconvertToLAMPilot(LandAirMek lam, Crew crew) Used by LandAirMek.setCrew to convert aCrewinstance into aLAMPilotinstance.getDescVector(boolean gunneryOnly) Crew summary report used for victory phase.intintintintintintintintintintintintintintgetPiloting(EntityMovementType moveType) LAMs use a different skill in AirMEK mode depending on whether they are grounded or airborne.intintgetSkillsAsString(boolean showPiloting, boolean rpgSkills) getSkillsAsString(int pos, boolean showPiloting, boolean rpgSkills) booleanisCustom()Returns whether this pilot has non-standard piloting or gunnery valuesprotected intprotected intprotected intprotected intprotected intprotected intrawPiloting(EntityMovementType moveType) voidsetGunneryAero(int gunnery) voidsetGunneryAeroB(int gunnery) voidsetGunneryAeroL(int gunnery) voidsetGunneryAeroM(int gunnery) voidsetGunneryMek(int gunnery) voidsetGunneryMekB(int gunnery) voidsetGunneryMekL(int gunnery) voidsetGunneryMekM(int gunnery) voidsetPilotingAero(int piloting) voidsetPilotingMek(int piloting) Methods inherited from class megamek.common.units.Crew
appliedArtilleryModifier, appliedGunneryBModifier, appliedGunneryLModifier, appliedGunneryMModifier, appliedGunneryModifier, appliedPilotingModifier, appliedPilotingModifier, calculateHits, clearOptions, countOptions, countOptions, decreaseEdge, doConsoleRoleSwap, getArtillery, getArtillery, getBackupGunnerPos, getBackupPilotPos, getClanPilots, getCommandBonus, getCrewFatigue, getCrewType, getCurrentGunnerIndex, getCurrentPilotIndex, getCurrentSize, getDesc, getDesc, getExternalId, getExternalIdAsString, getExternalIdAsString, getExtraData, getExtraDataForCrewMember, getExtraDataValue, getGender, getGender, getGenders, getGunnery, getGunneryB, getGunneryL, getGunneryM, getHits, getHits, getInitBonus, getName, getName, getNameAndRole, getNames, getNickname, getNickname, getNicknames, getOptionList, getOptions, getOptions, getPiloting, getPortrait, getPortraits, getSensorOps, getSize, getSkillModifiers, getSkillsAsString, getSkillsAsString, getSlotCount, getStatusDesc, getSwapConsoleRoles, getToughness, hasActiveCommandConsole, hasActiveTechOfficer, hasDedicatedGunner, hasDedicatedPilot, hasEdgeRemaining, hasPendingConRoll, hasPendingConRolls, incrementFatigueCount, isActive, isActive, isClanPilot, isClanPilot, isCrewTypeNone, isDead, isDead, isDoomed, isEjected, isGunneryFatigued, isKoThisRound, isKoThisRound, isMissing, isPilotingFatigued, isUnconscious, isUnconscious, parseAdvantageName, parseAdvantageValue, rawArtillery, resetActedFlag, resetGameState, resetPendingConRolls, rollGunnerySkill, rollPilotingSkill, setArtillery, setBackupGunnerPos, setBackupPilotPos, setClanPilot, setCommandBonus, setCrewFatigue, setCurrentPilot, setCurrentSize, setDead, setDead, setDoomed, setEjected, setExternalIdAsString, setExtraData, setExtraDataForCrewMember, setGender, setGunnery, setGunneryB, setGunneryL, setGunneryM, setHits, setInitBonus, setKoThisRound, setKoThisRound, setMissing, setName, setNickname, setOptions, setPendingConRolls, setPiloting, setPortrait, setSize, setSwapConsoleRoles, setToughness, setUnconscious, setUnconscious, sortRandomSkills, writeExtraDataToXMLLine
-
Constructor Details
-
LAMPilot
-
LAMPilot
-
-
Method Details
-
convertToLAMPilot
Used by LandAirMek.setCrew to convert aCrewinstance into aLAMPilotinstance.- Parameters:
lam- The LAM that is piloted by this crew.crew- The crew to convert to LAMPilot.- Returns:
- An instance of
LAMPilotthat has the same values as the crew argument.
-
getGunneryMek
public int getGunneryMek() -
setGunneryMek
public void setGunneryMek(int gunnery) -
getGunneryMekB
public int getGunneryMekB() -
setGunneryMekB
public void setGunneryMekB(int gunnery) -
getGunneryMekM
public int getGunneryMekM() -
setGunneryMekM
public void setGunneryMekM(int gunnery) -
getGunneryMekL
public int getGunneryMekL() -
setGunneryMekL
public void setGunneryMekL(int gunnery) -
getPilotingMek
public int getPilotingMek() -
setPilotingMek
public void setPilotingMek(int piloting) -
getGunneryAero
public int getGunneryAero() -
setGunneryAero
public void setGunneryAero(int gunnery) -
getGunneryAeroB
public int getGunneryAeroB() -
setGunneryAeroB
public void setGunneryAeroB(int gunnery) -
getGunneryAeroL
public int getGunneryAeroL() -
setGunneryAeroL
public void setGunneryAeroL(int gunnery) -
getGunneryAeroM
public int getGunneryAeroM() -
setGunneryAeroM
public void setGunneryAeroM(int gunnery) -
getPilotingAero
public int getPilotingAero() -
setPilotingAero
public void setPilotingAero(int piloting) -
getGunnery
public int getGunnery()- Overrides:
getGunneryin classCrew
-
getGunneryB
public int getGunneryB()- Overrides:
getGunneryBin classCrew
-
getGunneryL
public int getGunneryL()- Overrides:
getGunneryLin classCrew
-
getGunneryM
public int getGunneryM()- Overrides:
getGunneryMin classCrew
-
rawGunnery
protected int rawGunnery()- Overrides:
rawGunneryin classCrew
-
rawGunneryB
protected int rawGunneryB()- Overrides:
rawGunneryBin classCrew
-
rawGunneryL
protected int rawGunneryL()- Overrides:
rawGunneryLin classCrew
-
rawGunneryM
protected int rawGunneryM()- Overrides:
rawGunneryMin classCrew
-
rawPiloting
protected int rawPiloting()- Overrides:
rawPilotingin classCrew
-
rawPiloting
- Overrides:
rawPilotingin classCrew
-
getPiloting
public int getPiloting()- Overrides:
getPilotingin classCrew
-
getPiloting
Description copied from class:CrewLAMs use a different skill in AirMEK mode depending on whether they are grounded or airborne.- Overrides:
getPilotingin classCrew
-
getSkillsAsString
- Overrides:
getSkillsAsStringin classCrew- Parameters:
showPiloting- if false, only the gunnery skill is shown (used for ProtoMeks; may be ignored for other unit types)- Returns:
- a String showing the overall skills in the format gunnery/piloting
-
getSkillsAsString
- Overrides:
getSkillsAsStringin classCrew- Parameters:
showPiloting- if false, only the gunnery skill is shown (used for ProtoMeks; may be ignored for other unit types)- Returns:
- a String showing the overall skills in the format gunnery (Mek)/piloting (Mek)/gunnery (Aero)/piloting (Aero)
-
getDescVector
Crew summary report used for victory phase.- Overrides:
getDescVectorin classCrew- Parameters:
gunneryOnly- Do not show the piloting skill
-
isCustom
public boolean isCustom()Returns whether this pilot has non-standard piloting or gunnery values
-