megamek.common.verifier
Class TestMech
java.lang.Object
megamek.common.verifier.TestEntity
megamek.common.verifier.TestMech
- All Implemented Interfaces:
- TestEntityOption
public class TestMech
- extends TestEntity
|
Method Summary |
void |
checkCriticalSlotsForEquipment(Entity entity,
java.util.Vector<Mounted> unallocated,
java.util.Vector<java.io.Serializable> allocation,
java.util.Vector<java.lang.Integer> heatSinks)
|
boolean |
checkMiscSpreadAllocation(Entity entity,
Mounted mounted,
java.lang.StringBuffer buff)
|
boolean |
correctArmor(java.lang.StringBuffer buff)
|
boolean |
correctCriticals(java.lang.StringBuffer buff)
|
boolean |
correctEntity(java.lang.StringBuffer buff)
|
boolean |
correctEntity(java.lang.StringBuffer buff,
boolean ignoreAmmo)
|
boolean |
correctMovement(java.lang.StringBuffer buff)
|
int |
countCriticalSlotsFromEquipInLocation(Entity entity,
int eNum,
int location)
|
boolean |
criticalSlotsAllocated(Entity entity,
Mounted mounted,
java.util.Vector<java.io.Serializable> allocation,
java.lang.StringBuffer buff)
|
float |
getArmoredComponentWeight()
calculates the total weight of all armored components. |
int |
getCountHeatSinks()
|
Entity |
getEntity()
|
Mech |
getMech()
|
java.lang.String |
getName()
|
float |
getWeightCockpit()
|
float |
getWeightControls()
|
float |
getWeightGyro()
|
int |
getWeightHeatSinks()
|
float |
getWeightMisc()
|
float |
getWeightPowerAmp()
|
boolean |
hasDoubleHeatSinks()
|
boolean |
isMech()
|
boolean |
isTank()
|
java.lang.String |
printArmorLocProp(int loc,
int wert)
|
java.lang.StringBuffer |
printEntity()
|
java.lang.String |
printWeightControls()
|
java.lang.String |
printWeightMisc()
|
| Methods inherited from class megamek.common.verifier.TestEntity |
calcMiscCrits, calculateWeight, ceil, ceilMaxHalf, correctWeight, correctWeight, getLocationAbbr, getMaxOverweight, getMinUnderweight, getPrintSize, getTargCompCrits, getTotalOArmor, getWeight, getWeightAmmo, getWeightArmor, getWeightCarryingSpace, getWeightCeilingArmor, getWeightCeilingControls, getWeightCeilingEngine, getWeightCeilingGyro, getWeightCeilingPowerAmp, getWeightCeilingStructure, getWeightCeilingTargComp, getWeightCeilingTurret, getWeightCeilingWeapons, getWeightEngine, getWeightMiscEquip, getWeightStructure, getWeightWeapon, hasFailedEquipment, hasIllegalEquipmentCombinations, hasIllegalTechLevels, hasIllegalTechLevels, ignoreFailedEquip, isClan, isClanArmor, makeWeightString, printAmmo, printAmmo, printAmmo, printArmorLocation, printArmorPlacement, printFailedEquipment, printLocations, printMiscEquip, printMiscEquip, printMiscEquip, printShortMovement, printTechLevel, printWeapon, printWeapon, printWeapon, printWeightArmor, printWeightCalculation, printWeightCarryingSpace, printWeightEngine, printWeightHeatSinks, printWeightStructure, showCorrectArmor, showCorrectCritical, showFailedEquip, showOverweightedEntity, showUnderweightedEntity, skip |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TestMech
public TestMech(Mech mech,
TestEntityOption option,
java.lang.String fileString)
getEntity
public Entity getEntity()
- Specified by:
getEntity in class TestEntity
isTank
public boolean isTank()
- Specified by:
isTank in class TestEntity
isMech
public boolean isMech()
- Specified by:
isMech in class TestEntity
getWeightMisc
public float getWeightMisc()
- Specified by:
getWeightMisc in class TestEntity
getWeightPowerAmp
public float getWeightPowerAmp()
- Specified by:
getWeightPowerAmp in class TestEntity
getWeightCockpit
public float getWeightCockpit()
getWeightGyro
public float getWeightGyro()
getWeightControls
public float getWeightControls()
- Specified by:
getWeightControls in class TestEntity
getCountHeatSinks
public int getCountHeatSinks()
- Specified by:
getCountHeatSinks in class TestEntity
getWeightHeatSinks
public int getWeightHeatSinks()
- Specified by:
getWeightHeatSinks in class TestEntity
hasDoubleHeatSinks
public boolean hasDoubleHeatSinks()
- Specified by:
hasDoubleHeatSinks in class TestEntity
printWeightMisc
public java.lang.String printWeightMisc()
- Specified by:
printWeightMisc in class TestEntity
printWeightControls
public java.lang.String printWeightControls()
- Specified by:
printWeightControls in class TestEntity
getMech
public Mech getMech()
countCriticalSlotsFromEquipInLocation
public int countCriticalSlotsFromEquipInLocation(Entity entity,
int eNum,
int location)
checkMiscSpreadAllocation
public boolean checkMiscSpreadAllocation(Entity entity,
Mounted mounted,
java.lang.StringBuffer buff)
criticalSlotsAllocated
public boolean criticalSlotsAllocated(Entity entity,
Mounted mounted,
java.util.Vector<java.io.Serializable> allocation,
java.lang.StringBuffer buff)
checkCriticalSlotsForEquipment
public void checkCriticalSlotsForEquipment(Entity entity,
java.util.Vector<Mounted> unallocated,
java.util.Vector<java.io.Serializable> allocation,
java.util.Vector<java.lang.Integer> heatSinks)
correctCriticals
public boolean correctCriticals(java.lang.StringBuffer buff)
printArmorLocProp
public java.lang.String printArmorLocProp(int loc,
int wert)
correctArmor
public boolean correctArmor(java.lang.StringBuffer buff)
correctMovement
public boolean correctMovement(java.lang.StringBuffer buff)
correctEntity
public boolean correctEntity(java.lang.StringBuffer buff)
- Specified by:
correctEntity in class TestEntity
correctEntity
public boolean correctEntity(java.lang.StringBuffer buff,
boolean ignoreAmmo)
- Specified by:
correctEntity in class TestEntity
printEntity
public java.lang.StringBuffer printEntity()
- Specified by:
printEntity in class TestEntity
getName
public java.lang.String getName()
- Specified by:
getName in class TestEntity
getArmoredComponentWeight
public float getArmoredComponentWeight()
- calculates the total weight of all armored components.
- Overrides:
getArmoredComponentWeight in class TestEntity