Package megameklab.printing
Class WeaponBayInventoryEntry
java.lang.Object
megameklab.printing.WeaponBayInventoryEntry
- All Implemented Interfaces:
InventoryEntry
Formats text for an entry for a weapon bay in the weapons and equipment inventory section of the record sheet.
-
Field Summary
FieldsFields inherited from interface megameklab.printing.InventoryEntry
DAGGER, DASH, DOUBLE_DAGGER, MINUS -
Constructor Summary
ConstructorsConstructorDescriptionWeaponBayInventoryEntry(megamek.common.units.Aero ship, int index, WeaponBayText bay, boolean isCapital) -
Method Summary
Modifier and TypeMethodDescriptiongetDamageField(int row) getExtremeField(int row) getHeatField(int row) getLocationField(int row) getLongField(int row) getMediumField(int row) getMinField(int row) getModField(int row, boolean baseOnly) getNameField(int row) getQuantityField(int row) getShortField(int row) booleanbooleanbooleanbooleanbooleanbooleanintnRows()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface megameklab.printing.InventoryEntry
aeroAVMod, aeroAVMod, getModField
-
Field Details
-
index
public final int index
-
-
Constructor Details
-
WeaponBayInventoryEntry
public WeaponBayInventoryEntry(megamek.common.units.Aero ship, int index, WeaponBayText bay, boolean isCapital)
-
-
Method Details
-
getUniqueId
- Specified by:
getUniqueIdin interfaceInventoryEntry
-
nRows
public int nRows()- Specified by:
nRowsin 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.
-
isDamaged
public boolean isDamaged()- Specified by:
isDamagedin interfaceInventoryEntry- Returns:
- If is damaged
-
getQuantityField
- Specified by:
getQuantityFieldin 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:
getNameFieldin interfaceInventoryEntry- Parameters:
row- The row index within the entry. Should be < nRows()- Returns:
- The name of the equipment
-
getLocationField
- Specified by:
getLocationFieldin interfaceInventoryEntry- Parameters:
row- The row index within the entry. Should be < nRows()- Returns:
- The location/firing arc
-
getHeatField
- Specified by:
getHeatFieldin interfaceInventoryEntry- Parameters:
row- The row index within the entry. Should be < nRows()- Returns:
- The amount of heat generated
-
getDamageField
- Specified by:
getDamageFieldin 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:
getMinFieldin interfaceInventoryEntry- Parameters:
row- The row index within the entry. Should be < nRows()- Returns:
- The upper limit of the minimum range
-
getShortField
- Specified by:
getShortFieldin 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:
getMediumFieldin 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:
getLongFieldin 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:
getExtremeFieldin interfaceInventoryEntry- Parameters:
row- The row index within the entry. Should be < nRows()- Returns:
- The ERV (aero units)
-
getModField
- Specified by:
getModFieldin interfaceInventoryEntry- Parameters:
row- The row index within the entry- Returns:
- The to-hit modifier of the item
-
indentMultiline
public boolean indentMultiline()- Specified by:
indentMultilinein interfaceInventoryEntry- Returns:
- Whether lines after the first line should be indented
-
hasQuirks
public boolean hasQuirks()- Specified by:
hasQuirksin interfaceInventoryEntry- Returns:
- Whether the entry has any quirks that need to be printed
-
getQuirksField
- Specified by:
getQuirksFieldin interfaceInventoryEntry- Returns:
- The quirk text to print, if any
-
hasArtemisIV
public boolean hasArtemisIV() -
hasArtemisV
public boolean hasArtemisV() -
hasApollo
public boolean hasApollo()
-