Package megamek.common.options
Class Quirks
java.lang.Object
megamek.common.options.AbstractOptions
megamek.common.options.Quirks
- All Implemented Interfaces:
Serializable,IGameOptions
Contains the options determining Unit Quirks of a unit (but not weapon quirks). When changing this, note that all
options should remain boolean options.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class megamek.common.options.AbstractOptions
AbstractOptions.GroupsEnumeration -
Field Summary
FieldsFields inherited from class megamek.common.options.AbstractOptions
optionsHash -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected AbstractOptionsInfovoidstatic booleanisQuirkDisallowed(IOption quirk, Entity en) static booleanisQuirkLegalFor(IOption quirk, Entity en) Methods inherited from class megamek.common.options.AbstractOptions
addGroup, addGroup, addOption, addOption, addOption, addOption, addOption, addOption, booleanOption, count, count, floatOption, getGroups, getOption, getOptionInfo, getOptionList, getOptionListString, getOptionMap, getOptions, getOptionsInfo, getOptionsList, intOption, stringOption
-
Field Details
-
POS_QUIRKS
- See Also:
-
NEG_QUIRKS
- See Also:
-
-
Constructor Details
-
Quirks
public Quirks()
-
-
Method Details
-
initialize
public void initialize()- Specified by:
initializein classAbstractOptions
-
getOptionsInfoImp
- Specified by:
getOptionsInfoImpin classAbstractOptions
-
activeQuirks
- Returns:
- A list of unit quirks that are active in this Quirks object.
-
isQuirkDisallowed
-
isQuirkLegalFor
-