Package mekhq.campaign.personnel
Class PersonnelOptions
java.lang.Object
megamek.common.options.AbstractOptions
megamek.common.options.PilotOptions
mekhq.campaign.personnel.PersonnelOptions
- All Implemented Interfaces:
Serializable
,megamek.common.options.IGameOptions
public class PersonnelOptions
extends megamek.common.options.PilotOptions
An extension of PilotOptions that adds MekHQ-specific SPAs and edge triggers for support and command actions. Display
names and descriptions are taken from SpecialAbility when present, otherwise from the MM option.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class megamek.common.options.AbstractOptions
megamek.common.options.AbstractOptions.GroupsEnumeration
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final int
static final int
static final int
static final int
static final int
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final int
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
Fields inherited from class megamek.common.options.PilotOptions
EDGE_ADVANTAGES, LVL3_ADVANTAGES, MD_ADVANTAGES
Fields inherited from class megamek.common.options.AbstractOptions
optionsHash
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
acquireAbility
(String type, String name, Object value) protected void
addOption
(megamek.common.options.IBasicOptionGroup group, String name, int type, Object defaultValue) static int
Returns the check modifier associated with a specific compulsion or mental state.Enumeration<megamek.common.options.IOption>
getOptions
(String grpKey) Returns the options of the given category that this pilot hasprotected megamek.common.options.AbstractOptionsInfo
void
Methods inherited from class megamek.common.options.AbstractOptions
addGroup, addGroup, addOption, addOption, addOption, addOption, addOption, booleanOption, count, count, floatOption, getGroups, getOption, getOptionInfo, getOptionList, getOptionListString, getOptionMap, getOptions, getOptionsInfo, getOptionsList, intOption, stringOption
-
Field Details
-
EDGE_MEDICAL
- See Also:
-
EDGE_REPAIR_BREAK_PART
- See Also:
-
EDGE_REPAIR_FAILED_REFIT
- See Also:
-
EDGE_ADMIN_ACQUIRE_FAIL
- See Also:
-
TECH_WEAPON_SPECIALIST
- See Also:
-
TECH_ARMOR_SPECIALIST
- See Also:
-
TECH_INTERNAL_SPECIALIST
- See Also:
-
TECH_ENGINEER
- See Also:
-
TECH_FIXER
- See Also:
-
TECH_MAINTAINER
- See Also:
-
FLAW_GLASS_JAW
- See Also:
-
ATOW_TOUGHNESS
- See Also:
-
FLAW_SLOW_LEARNER
- See Also:
-
ATOW_FAST_LEARNER
- See Also:
-
ATOW_ALTERNATE_ID
- See Also:
-
ATOW_CITIZENSHIP
- See Also:
-
FLAW_ANIMAL_ANTIPATHY
- See Also:
-
ATOW_ANIMAL_EMPATHY
- See Also:
-
ATOW_AMBIDEXTROUS
- See Also:
-
FLAW_UNATTRACTIVE
- See Also:
-
ATOW_ATTRACTIVE
- See Also:
-
FLAW_UNFIT
- See Also:
-
ATOW_FIT
- See Also:
-
FLAW_POOR_HEARING
- See Also:
-
ATOW_GOOD_HEARING
- See Also:
-
FLAW_POOR_VISION
- See Also:
-
ATOW_GOOD_VISION
- See Also:
-
FLAW_INTROVERT
- See Also:
-
ATOW_GREGARIOUS
- See Also:
-
FLAW_IMPATIENT
- See Also:
-
ATOW_PATIENT
- See Also:
-
ATOW_POISON_RESISTANCE
- See Also:
-
ATOW_SIXTH_SENSE
- See Also:
-
FLAW_GREMLINS
- See Also:
-
ATOW_TECH_EMPATHY
- See Also:
-
FLAW_TRANSIT_DISORIENTATION_SYNDROME
- See Also:
-
FLAW_ILLITERATE
- See Also:
-
DARK_SECRET_TRIVIAL
- See Also:
-
DARK_SECRET_SIGNIFICANT
- See Also:
-
DARK_SECRET_MAJOR
- See Also:
-
DARK_SECRET_SEVERE
- See Also:
-
DARK_SECRET_EXTREME
- See Also:
-
MUTATION_FREAKISH_STRENGTH
- See Also:
-
MUTATION_EXCEPTIONAL_IMMUNE_SYSTEM
- See Also:
-
MUTATION_EXOTIC_APPEARANCE
- See Also:
-
MUTATION_FACIAL_HAIR
- See Also:
-
MUTATION_SERIOUS_DISFIGUREMENT
- See Also:
-
MUTATION_CAT_GIRL
- See Also:
-
MUTATION_CAT_GIRL_UNOFFICIAL
- See Also:
-
EXCEPTIONAL_ATTRIBUTE_STRENGTH
- See Also:
-
EXCEPTIONAL_ATTRIBUTE_BODY
- See Also:
-
EXCEPTIONAL_ATTRIBUTE_REFLEXES
- See Also:
-
EXCEPTIONAL_ATTRIBUTE_DEXTERITY
- See Also:
-
EXCEPTIONAL_ATTRIBUTE_INTELLIGENCE
- See Also:
-
EXCEPTIONAL_ATTRIBUTE_WILLPOWER
- See Also:
-
EXCEPTIONAL_ATTRIBUTE_CHARISMA
- See Also:
-
ADMIN_MEDIATOR
- See Also:
-
ADMIN_LOGISTICIAN
- See Also:
-
ADMIN_COORDINATOR
- See Also:
-
ADMIN_TETRIS_MASTER
- See Also:
-
ADMIN_NETWORKER
- See Also:
-
ADMIN_INTERSTELLAR_NEGOTIATOR
- See Also:
-
ADMIN_SCROUNGE
- See Also:
-
COMPULSION_UNPLEASANT_PERSONALITY
- See Also:
-
COMPULSION_MILD_PARANOIA
- See Also:
-
COMPULSION_RACISM
- See Also:
-
COMPULSION_RELIGIOUS_FANATICISM
- See Also:
-
COMPULSION_TRAUMATIC_PAST
- See Also:
-
COMPULSION_FACTION_PRIDE
- See Also:
-
COMPULSION_GAMBLING
- See Also:
-
COMPULSION_ANARCHIST
- See Also:
-
COMPULSION_FACTION_LOYALTY
- See Also:
-
COMPULSION_PATHOLOGIC_RACISM
- See Also:
-
COMPULSION_XENOPHOBIA
- See Also:
-
COMPULSION_ADDICTION
- See Also:
-
MADNESS_FLASHBACKS
- See Also:
-
MADNESS_CONFUSION
- See Also:
-
MADNESS_CLINICAL_PARANOIA
- See Also:
-
MADNESS_SPLIT_PERSONALITY
- See Also:
-
MADNESS_CATATONIA
- See Also:
-
MADNESS_REGRESSION
- See Also:
-
MADNESS_HYSTERIA
- See Also:
-
MADNESS_BERSERKER
- See Also:
-
COMPULSION_CHECK_MODIFIER_TRIVIAL
public static final int COMPULSION_CHECK_MODIFIER_TRIVIAL- See Also:
-
COMPULSION_CHECK_MODIFIER_SIGNIFICANT
public static final int COMPULSION_CHECK_MODIFIER_SIGNIFICANT- See Also:
-
COMPULSION_CHECK_MODIFIER_MAJOR
public static final int COMPULSION_CHECK_MODIFIER_MAJOR- See Also:
-
COMPULSION_CHECK_MODIFIER_SEVERE
public static final int COMPULSION_CHECK_MODIFIER_SEVERE- See Also:
-
COMPULSION_CHECK_MODIFIER_EXTREME
public static final int COMPULSION_CHECK_MODIFIER_EXTREME- See Also:
-
DARK_SECRET_MODIFIERS
-
ILLITERACY_LANGUAGES_THRESHOLD
public static final int ILLITERACY_LANGUAGES_THRESHOLD- See Also:
-
-
Constructor Details
-
PersonnelOptions
public PersonnelOptions()
-
-
Method Details
-
initialize
public void initialize()- Overrides:
initialize
in classmegamek.common.options.PilotOptions
-
addOption
protected void addOption(megamek.common.options.IBasicOptionGroup group, String name, int type, Object defaultValue) - Overrides:
addOption
in classmegamek.common.options.AbstractOptions
-
getOptions
Returns the options of the given category that this pilot has -
acquireAbility
-
getCompulsionCheckModifier
Returns the check modifier associated with a specific compulsion or mental state.This method maps a given compulsion or madness name to its corresponding check modifier, representing the impact of various psychological traits or conditions on compulsion-related rolls. The modifier value reflects the severity of the condition, ranging from trivial to extreme.
- Parameters:
name
- the name of the compulsion or mental state for which to retrieve the check modifier- Returns:
- the
Integer
value representing the check modifier for the specified state - Since:
- 0.50.07
-
getOptionsInfoImp
protected megamek.common.options.AbstractOptionsInfo getOptionsInfoImp()- Overrides:
getOptionsInfoImp
in classmegamek.common.options.PilotOptions
-