megamek.common.verifier
Class TestTank

java.lang.Object
  extended by megamek.common.verifier.TestEntity
      extended by megamek.common.verifier.TestTank
All Implemented Interfaces:
TestEntityOption

public class TestTank
extends TestEntity


Field Summary
 
Fields inherited from class megamek.common.verifier.TestEntity
armor, CEIL_HALFTON, CEIL_QUARTERTON, CEIL_TENTHTON, CEIL_TON, engine, fileString, structure
 
Fields inherited from interface megamek.common.verifier.TestEntityOption
CEIL_TARGCOMP_CRITS, FLOOR_TARGCOMP_CRITS, ROUND_TARGCOMP_CRITS
 
Constructor Summary
TestTank(Tank tank, TestEntityOption options, java.lang.String fileString)
           
 
Method Summary
 boolean correctEntity(java.lang.StringBuffer buff)
           
 boolean correctEntity(java.lang.StringBuffer buff, boolean ignoreAmmo)
           
 int getCountHeatSinks()
           
 Entity getEntity()
           
 java.lang.String getName()
           
 Tank getTank()
           
 float getTankPowerAmplifier()
           
 float getTankWeightLifting()
           
 float getTankWeightTurret()
           
 float getWeightControls()
           
 int getWeightHeatSinks()
           
 float getWeightMisc()
           
 float getWeightPowerAmp()
           
 boolean hasDoubleHeatSinks()
           
 boolean isMech()
           
 boolean isTank()
           
 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, getArmoredComponentWeight, 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
 

Constructor Detail

TestTank

public TestTank(Tank tank,
                TestEntityOption options,
                java.lang.String fileString)
Method Detail

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

getTankWeightTurret

public float getTankWeightTurret()

getTankWeightLifting

public float getTankWeightLifting()

getTankPowerAmplifier

public float getTankPowerAmplifier()

getWeightMisc

public float getWeightMisc()
Specified by:
getWeightMisc in class TestEntity

getWeightControls

public float getWeightControls()
Specified by:
getWeightControls in class TestEntity

hasDoubleHeatSinks

public boolean hasDoubleHeatSinks()
Specified by:
hasDoubleHeatSinks in class TestEntity

getCountHeatSinks

public int getCountHeatSinks()
Specified by:
getCountHeatSinks in class TestEntity

getWeightHeatSinks

public int getWeightHeatSinks()
Specified by:
getWeightHeatSinks 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

getTank

public Tank getTank()

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

getWeightPowerAmp

public float getWeightPowerAmp()
Specified by:
getWeightPowerAmp in class TestEntity