Package megamek.common.rules.core
Class CoreRulesPilot
java.lang.Object
megamek.common.rules.RulesPilot
megamek.common.rules.core.CoreRulesPilot
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintHow many pilot hits for an explosion.intgetSeatbeltGyroModifier(int piloting) Is there a modifier for the gyro being destroyed.intgetSeatbeltLegModifier(int piloting, int legsDestroyed) Do we modify seatbelt by legs destroyed.getSeatbeltRoll(Entity entity, int fallHeight, int piloting, List<TargetRollModifier> modifiers, PilotingRollData roll) Seatbelt checks for potentially multiple crewintgetSeatbeltShutdown(int piloting) What is the seatbelt check on shutdown.Handle pilot hits.rollConRolls(Entity entity, boolean toughness) Rolls any pending con checksMethods inherited from class megamek.common.rules.RulesPilot
createCrewTakeoverReport, getSeatbeltHeightModifier, rollSensorCheck
-
Constructor Details
-
CoreRulesPilot
public CoreRulesPilot()
-
-
Method Details
-
pilotHits
@Nullable public Vector<Report> pilotHits(Entity e, int totalHits, int damage, int crewPos, boolean toughness, GamePhase phase) Handle pilot hits. Core p.117, same as TW. Handle pilot hits. Core p.117. Only the highest roll is performed.- Overrides:
pilotHitsin classRulesPilot- Parameters:
e- the entity taking pilot hitstotalHits- the total number of hitsdamage- the damage amountcrewPos- the crew positiontoughness- true if the pilot has toughness- Returns:
- vector of reports describing the pilot hits
-
rollConRolls
Rolls any pending con checks- Overrides:
rollConRollsin classRulesPilot- Parameters:
entity- The entity to roll- Returns:
- The reports
-
getExplosionPilotHits
public int getExplosionPilotHits()How many pilot hits for an explosion. How many pilot hits for an explosion Core p.117- Specified by:
getExplosionPilotHitsin classRulesPilot- Returns:
- the number of pilot hits caused by an explosion
-
getSeatbeltGyroModifier
public int getSeatbeltGyroModifier(int piloting) Is there a modifier for the gyro being destroyed. Seatbelt check for gyro has no modifier Core p.117- Specified by:
getSeatbeltGyroModifierin classRulesPilot- Parameters:
piloting- the piloting skill- Returns:
- the seatbelt gyro modifier
-
getSeatbeltLegModifier
public int getSeatbeltLegModifier(int piloting, int legsDestroyed) Do we modify seatbelt by legs destroyed. Seatbelt check for legs destroyed has no modifier Core p.117- Specified by:
getSeatbeltLegModifierin classRulesPilot- Parameters:
piloting- the piloting skilllegsDestroyed- the number of legs destroyed- Returns:
- the seatbelt leg modifier
-
getSeatbeltShutdown
public int getSeatbeltShutdown(int piloting) What is the seatbelt check on shutdown. Seatbelt check for shutdown has no modifier Core p.117- Specified by:
getSeatbeltShutdownin classRulesPilot- Parameters:
piloting- the piloting skill- Returns:
- the seatbelt shutdown target number
-
getSeatbeltRoll
public PilotingRollData getSeatbeltRoll(Entity entity, int fallHeight, int piloting, List<TargetRollModifier> modifiers, PilotingRollData roll) Seatbelt checks for potentially multiple crew Always create a new roll with just piloting and height of fall- Specified by:
getSeatbeltRollin classRulesPilot- Parameters:
entity- the entity fallingfallHeight- how big was the fallpiloting- piloting skillmodifiers- list of modifiersroll- the current Piloting Roll- Returns:
- the new Piloting roll
-