Class LAMPilot

java.lang.Object
megamek.common.units.Crew
megamek.common.units.LAMPilot
All Implemented Interfaces:
Serializable

public class LAMPilot extends Crew
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:
  • Constructor Details

  • Method Details

    • convertToLAMPilot

      public static LAMPilot convertToLAMPilot(LandAirMek lam, Crew crew)
      Used by LandAirMek.setCrew to convert a Crew instance into a LAMPilot instance.
      Parameters:
      lam - The LAM that is piloted by this crew.
      crew - The crew to convert to LAMPilot.
      Returns:
      An instance of LAMPilot that 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:
      getGunnery in class Crew
    • getGunneryB

      public int getGunneryB()
      Overrides:
      getGunneryB in class Crew
    • getGunneryL

      public int getGunneryL()
      Overrides:
      getGunneryL in class Crew
    • getGunneryM

      public int getGunneryM()
      Overrides:
      getGunneryM in class Crew
    • rawGunnery

      protected int rawGunnery()
      Overrides:
      rawGunnery in class Crew
    • rawGunneryB

      protected int rawGunneryB()
      Overrides:
      rawGunneryB in class Crew
    • rawGunneryL

      protected int rawGunneryL()
      Overrides:
      rawGunneryL in class Crew
    • rawGunneryM

      protected int rawGunneryM()
      Overrides:
      rawGunneryM in class Crew
    • rawPiloting

      protected int rawPiloting()
      Overrides:
      rawPiloting in class Crew
    • rawPiloting

      protected int rawPiloting(EntityMovementType moveType)
      Overrides:
      rawPiloting in class Crew
    • getPiloting

      public int getPiloting()
      Overrides:
      getPiloting in class Crew
    • getPiloting

      public int getPiloting(EntityMovementType moveType)
      Description copied from class: Crew
      LAMs use a different skill in AirMEK mode depending on whether they are grounded or airborne.
      Overrides:
      getPiloting in class Crew
    • getSkillsAsString

      public String getSkillsAsString(boolean showPiloting, boolean rpgSkills)
      Overrides:
      getSkillsAsString in class Crew
      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

      public String getSkillsAsString(int pos, boolean showPiloting, boolean rpgSkills)
      Overrides:
      getSkillsAsString in class Crew
      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

      public Vector<Report> getDescVector(boolean gunneryOnly)
      Crew summary report used for victory phase.
      Overrides:
      getDescVector in class Crew
      Parameters:
      gunneryOnly - Do not show the piloting skill
    • isCustom

      public boolean isCustom()
      Returns whether this pilot has non-standard piloting or gunnery values
      Overrides:
      isCustom in class Crew