Package megamek.common.templates
Class MekTROView
java.lang.Object
megamek.common.templates.TROView
megamek.common.templates.MekTROView
Creates a TRO template model for BattleMeks, OmniMeks, and IndustrialMeks of all leg configurations.
-
Nested Class Summary
Nested classes/interfaces inherited from class megamek.common.templates.TROView
TROView.FormatTableRowMethod, TROView.Justification -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddFluff()protected StringformatLocationTableEntry(Entity entity, Mounted<?> mounted) Formats displayable location name for use in equipment table.protected StringgetSystemName(Entity entity, int index) Used to show the name of fixed system critical slots in an omni unit.protected StringgetTemplateFileName(boolean html) protected voidinitModel(EntityVerifier verifier) protected booleanshowFixedSystem(Entity entity, int index, int loc) Used to determine whether system crits should be shown when detailing fixed equipment in an omni unit.protected booleanTest for whether the mount should be included in the equipment inventory section.Methods inherited from class megamek.common.templates.TROView
addArmorStructureEntries, addBasicData, addEntityFluff, addEquipment, addEquipment, addFixedOmni, addMekVeeAeroFluff, addPatchworkATs, addTransportBays, createView, formatArmorType, formatArmorType, formatSystemFluff, formatTransporter, getIncludeFluff, getModelData, processTemplate, setIncludeFluff, setModelData, stripNotes
-
Constructor Details
-
MekTROView
-
-
Method Details
-
getTemplateFileName
- Overrides:
getTemplateFileNamein classTROView
-
initModel
-
addFluff
protected void addFluff() -
showFixedSystem
Description copied from class:TROViewUsed to determine whether system crits should be shown when detailing fixed equipment in an omni unit. By default, this is false, but meks override it to show some systems.- Overrides:
showFixedSystemin classTROView- Parameters:
entity- The unit the TRO is forindex- The system index of the critical slotloc- The slot location- Returns:
- Whether to show this as a fixed system in an omni configuration
-
getSystemName
Description copied from class:TROViewUsed to show the name of fixed system critical slots in an omni unit. This is only used for Meks, and returns a default value of "Unknown System" for other units.- Overrides:
getSystemNamein classTROView- Parameters:
entity- The unit the TRO is forindex- The system index of the critical slot- Returns:
- The name of the system to display in the fixed equipment table
-
formatLocationTableEntry
Description copied from class:TROViewFormats displayable location name for use in equipment table. The format of the name can vary by unit type due to available space based on number of columns, and in some cases the official TROs have different location names than the ones used by MM.- Overrides:
formatLocationTableEntryin classTROView- Parameters:
entity- The entity the TRO is created formounted- The mounted equipment- Returns:
- The location name to use in the table.
-
skipMount
Description copied from class:TROViewTest for whether the mount should be included in the equipment inventory section.
-