Class ConstantSkillGenerator

java.lang.Object
megamek.client.generator.skillGenerators.AbstractSkillGenerator
megamek.client.generator.skillGenerators.ConstantSkillGenerator
Direct Known Subclasses:
ModifiedConstantSkillGenerator

public class ConstantSkillGenerator extends AbstractSkillGenerator
  • Constructor Details

    • ConstantSkillGenerator

      public ConstantSkillGenerator()
    • ConstantSkillGenerator

      protected ConstantSkillGenerator(SkillGeneratorMethod method)
  • Method Details

    • generateRandomSkills

      public int[] generateRandomSkills(Entity entity, boolean clanPilot, boolean forceClan)
      Description copied from class: AbstractSkillGenerator
      Generates random skills for an entity based on the current settings of the random skill generator, but does not assign those new skills to that entity. The return value MUST be cleaned with cleanReturn for this setup to work properly.
      Specified by:
      generateRandomSkills in class AbstractSkillGenerator
      Parameters:
      entity - the Entity to generate a random skill array for
      clanPilot - if the crew to generate a random skills array for are a clan crew
      forceClan - forces the type to be clan if the crew are a clan crew
      Returns:
      an integer array containing the (Gunnery, Piloting) skill values, or an alternative pairing if applicable [(Gunnery, Anti-'Mek) for infantry]