Package megameklab.printing
Class IntrinsicPhysicalInventoryEntry
java.lang.Object
megameklab.printing.IntrinsicPhysicalInventoryEntry
- All Implemented Interfaces:
InventoryEntry
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface megameklab.printing.InventoryEntry
DAGGER, DASH, DOUBLE_DAGGER, MINUS
-
Method Summary
Modifier and TypeMethodDescriptiongetDamageField
(int row) static ArrayList<InventoryEntry>
getEntriesFor
(megamek.common.Entity entity) getExtremeField
(int row) getHeatField
(int row) getLocationField
(int row) getLongField
(int row) getMediumField
(int row) getMinField
(int row) getModField
(int row) getNameField
(int row) getQuantityField
(int row) getShortField
(int row) boolean
boolean
boolean
boolean
int
nRows()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface megameklab.printing.InventoryEntry
aeroAVMod, aeroAVMod
-
Method Details
-
getEntriesFor
-
isOptional
public boolean isOptional()- Returns:
- true if this physical should only be shown when the "Extra physicals" option is enabled.
-
nRows
public int nRows()- Specified by:
nRows
in interfaceInventoryEntry
- Returns:
- The number of rows this entry takes on the table. This does not consider text that is wrapped due to insufficient field width.
-
getUniqueId
- Specified by:
getUniqueId
in interfaceInventoryEntry
-
getQuantityField
- Specified by:
getQuantityField
in interfaceInventoryEntry
- Parameters:
row
- The row index within the entry. Should be < nRows()- Returns:
- The number of identical equipment pieces represented by this entry
-
getNameField
- Specified by:
getNameField
in interfaceInventoryEntry
- Parameters:
row
- The row index within the entry. Should be < nRows()- Returns:
- The name of the equipment
-
isDamaged
public boolean isDamaged()- Specified by:
isDamaged
in interfaceInventoryEntry
- Returns:
- If is damaged
-
getLocationField
- Specified by:
getLocationField
in interfaceInventoryEntry
- Parameters:
row
- The row index within the entry. Should be < nRows()- Returns:
- The location/firing arc
-
getHeatField
- Specified by:
getHeatField
in interfaceInventoryEntry
- Parameters:
row
- The row index within the entry. Should be < nRows()- Returns:
- The amount of heat generated
-
getDamageField
- Specified by:
getDamageField
in interfaceInventoryEntry
- Parameters:
row
- The row index within the entry. Should be < nRows()- Returns:
- The damage caused by the weapon, as well as its type code
-
getMinField
- Specified by:
getMinField
in interfaceInventoryEntry
- Parameters:
row
- The row index within the entry. Should be < nRows()- Returns:
- The upper limit of the minimum range
-
getShortField
- Specified by:
getShortField
in interfaceInventoryEntry
- Parameters:
row
- The row index within the entry. Should be < nRows()- Returns:
- The upper limit of the short range (ground units) or SRV (aero units)
-
getMediumField
- Specified by:
getMediumField
in interfaceInventoryEntry
- Parameters:
row
- The row index within the entry. Should be < nRows()- Returns:
- The upper limit of the medium range (ground units) or MRV (aero units)
-
getLongField
- Specified by:
getLongField
in interfaceInventoryEntry
- Parameters:
row
- The row index within the entry. Should be < nRows()- Returns:
- The upper limit of the long range (ground units) or LRV (aero units)
-
getExtremeField
- Specified by:
getExtremeField
in interfaceInventoryEntry
- Parameters:
row
- The row index within the entry. Should be < nRows()- Returns:
- The ERV (aero units)
-
getModField
- Specified by:
getModField
in interfaceInventoryEntry
- Parameters:
row
- The row index within the entry- Returns:
- The to-hit modifier of the item
-
indentMultiline
public boolean indentMultiline()- Specified by:
indentMultiline
in interfaceInventoryEntry
- Returns:
- Whether lines after the first line should be indented
-
hasQuirks
public boolean hasQuirks()- Specified by:
hasQuirks
in interfaceInventoryEntry
- Returns:
- Whether the entry has any quirks that need to be printed
-
getQuirksField
- Specified by:
getQuirksField
in interfaceInventoryEntry
- Returns:
- The quirk text to print, if any
-