Tabnine Logo
LAMPilot.setPilotingAero
Code IndexAdd Tabnine to your IDE (free)

How to use
setPilotingAero
method
in
megamek.common.LAMPilot

Best Java code snippets using megamek.common.LAMPilot.setPilotingAero (Showing top 6 results out of 315)

origin: MegaMek/megamek

((LAMPilot)crew).setGunneryAeroB(aeroCrew.getGunneryB());
((LAMPilot)crew).setGunneryAeroL(aeroCrew.getGunneryL());
((LAMPilot)crew).setPilotingAero(aeroCrew.getPiloting());
entity.setCrew(crew);
origin: MegaMek/mekhq

crew.setPiloting(Math.min(Math.max(pilotingMech, 0), 8));
crew.setGunnery(Math.min(Math.max(gunneryMech, 0), 7));
crew.setPilotingAero(Math.min(Math.max(pilotingAero, 0), 8));
crew.setGunneryAero(Math.min(Math.max(gunneryAero, 0), 7));
entity.getCrew().setArtillery(Math.min(Math.max(artillery, 0), 8), 0);
origin: MegaMek/megamek

skills = c.getRandomSkillsGenerator().getRandomSkills(e, true);
((LAMPilot)e.getCrew()).setGunneryAero(skills[0]);
((LAMPilot)e.getCrew()).setPilotingAero(skills[1]);
origin: MegaMek/megamek

  pilot.setPilotingAero(pilotingAero);
} else {
  if (client.getGame().getOptions().booleanOption(OptionsConstants.RPG_RPG_GUNNERY)) {
origin: MegaMek/megamek

private void autoSetSkillsAndName(Entity e) {
  IClientPreferences cs = PreferenceManager.getClientPreferences();
  for (int i = 0; i < e.getCrew().getSlotCount(); i++) {
    if(cs.useAverageSkills()) {
      int skills[] = m_client.getRandomSkillsGenerator().getRandomSkills(e, true);

      int gunnery = skills[0];
      int piloting = skills[1];

      e.getCrew().setGunnery(gunnery, i);
      e.getCrew().setPiloting(piloting, i);
      if (e.getCrew() instanceof LAMPilot) {
        skills = m_client.getRandomSkillsGenerator().getRandomSkills(e, true);
        ((LAMPilot)e.getCrew()).setGunneryAero(skills[0]);
        ((LAMPilot)e.getCrew()).setPilotingAero(skills[1]);
      }
    }
    e.getCrew().sortRandomSkills();
    if(cs.generateNames()) {
      e.getCrew().setName(m_client.getRandomNameGenerator().generate(), i);
    }
  }
}
origin: MegaMek/megamek

private void autoSetSkillsAndName(Entity e) {
  IClientPreferences cs = PreferenceManager.getClientPreferences();
  for (int i = 0; i < e.getCrew().getSlotCount(); i++) {
    if (cs.useAverageSkills()) {
      int skills[] = client.getRandomSkillsGenerator().getRandomSkills(e,
          true);

      int gunnery = skills[0];
      int piloting = skills[1];

      e.getCrew().setGunnery(gunnery, i);
      // For infantry, piloting doubles as antimek skill, and this is
      // set based on whether the unit has antimek training, which gets
      // set in the BLK file, so we should ignore the defaults
      if (!(e instanceof Infantry)) {
        e.getCrew().setPiloting(piloting, i);
      }
      if (e.getCrew() instanceof LAMPilot) {
        skills = client.getRandomSkillsGenerator().getRandomSkills(e, true);
        ((LAMPilot)e.getCrew()).setGunneryAero(skills[0]);
        ((LAMPilot)e.getCrew()).setPilotingAero(skills[1]);
      }
    }
    if(cs.generateNames()) {
      e.getCrew().setName(client.getRandomNameGenerator().generate(), i);
    }
  }
  e.getCrew().sortRandomSkills();
}
megamek.commonLAMPilotsetPilotingAero

Popular methods of LAMPilot

  • setGunneryAero
  • <init>
  • convertToLAMPilot
    Used by LandAirMech.setCrew to convert a Crew instance into a LAMPilot instance.
  • getBVImplantMultiplier
  • getBVSkillMultiplier
    Returns the BV multiplier for this pilot's gunnery/piloting
  • getCrewType
  • getGunneryAero
  • getGunneryAeroB
  • getGunneryAeroL
  • getGunneryAeroM
  • getGunneryMech
  • getGunneryMechB
  • getGunneryMech,
  • getGunneryMechB,
  • getGunneryMechL,
  • getGunneryMechM,
  • getHits,
  • getName,
  • getPilotingAero,
  • getPilotingMech,
  • getSkillsAsString

Popular in Java

  • Reactive rest calls using spring rest template
  • getResourceAsStream (ClassLoader)
  • getExternalFilesDir (Context)
  • onRequestPermissionsResult (Fragment)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now