|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmegamek.common.TurnOrdered
megamek.common.Entity
megamek.common.Aero
public class Aero
Taharqa's attempt at creating an Aerospace entity
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class megamek.common.Entity |
|---|
Entity.EntityFluff |
| Field Summary | |
|---|---|
static java.lang.String |
ALT_BOMB_ATTACK
|
static int |
COCKPIT_COMMAND_CONSOLE
|
static java.lang.String[] |
COCKPIT_SHORT_STRING
|
static int |
COCKPIT_SMALL
|
static int |
COCKPIT_STANDARD
|
static java.lang.String[] |
COCKPIT_STRING
|
static int |
CRIT_AVIONICS
|
static int |
CRIT_BOMB
|
static int |
CRIT_CARGO
|
static int |
CRIT_CIC
|
static int |
CRIT_CONTROL
|
static int |
CRIT_CREW
|
static int |
CRIT_DOCK_COLLAR
|
static int |
CRIT_DOOR
|
static int |
CRIT_ENGINE
|
static int |
CRIT_FCS
|
static int |
CRIT_FUEL_TANK
|
static int |
CRIT_GEAR
|
static int |
CRIT_GRAV_DECK
|
static int |
CRIT_HEATSINK
|
static int |
CRIT_KF_BOOM
|
static int |
CRIT_KF_DRIVE
|
static int |
CRIT_LEFT_THRUSTER
|
static int |
CRIT_LIFE_SUPPORT
|
static int |
CRIT_NONE
|
static int |
CRIT_RIGHT_THRUSTER
|
static int |
CRIT_SENSOR
|
static int |
CRIT_WEAPON
|
static int |
CRIT_WEAPON_BROAD
|
(package private) boolean |
critThresh
|
static java.lang.String |
DIVE_BOMB_ATTACK
|
static int |
HEAT_DOUBLE
|
static int |
HEAT_SINGLE
|
static int |
LOC_AFT
|
static int |
LOC_LWING
|
static int |
LOC_NOSE
|
static int |
LOC_RWING
|
static int |
LOC_WINGS
|
static int |
RAM_AWAY_DIR
|
static int |
RAM_AWAY_OBL
|
static int |
RAM_TOWARD_DIR
|
static int |
RAM_TOWARD_OBL
|
static java.lang.String |
SPACE_BOMB_ATTACK
|
(package private) boolean |
vstol
|
(package private) java.util.Map<java.lang.String,java.lang.Integer> |
weaponGroups
|
| Fields inherited from interface megamek.common.Targetable |
|---|
TYPE_BLDG_IGNITE, TYPE_BUILDING, TYPE_ENTITY, TYPE_FLARE_DELIVER, TYPE_FUEL_TANK, TYPE_FUEL_TANK_IGNITE, TYPE_HEX_AERO_BOMB, TYPE_HEX_ARTILLERY, TYPE_HEX_BOMB, TYPE_HEX_CLEAR, TYPE_HEX_EXTINGUISH, TYPE_HEX_IGNITE, TYPE_HEX_SCREEN, TYPE_INARC_POD, TYPE_MINEFIELD_CLEAR, TYPE_MINEFIELD_DELIVER, TYPE_SEARCHLIGHT |
| Constructor Summary | |
|---|---|
Aero()
|
|
| Method Summary | |
|---|---|
void |
addClanCase()
Adds clan CASE in every location |
PilotingRollData |
addEntityBonuses(PilotingRollData prd)
Add in any piloting skill mods |
protected void |
addEquipment(Mounted mounted,
int loc,
boolean rearMounted)
|
void |
addStandardDamage(int damage,
HitData hit)
|
void |
applyBombs()
|
boolean |
areWingsHit()
keep track of whether the wings have suffered a weapon critical hit |
void |
autoSetCapArmor()
|
void |
autoSetFatalThresh()
|
void |
autoSetInternal()
Set the internal structure to the appropriate value for the mech's weight class |
void |
autoSetMaxBombPoints()
|
void |
autoSetSI()
|
void |
autoSetThresh()
|
int |
calculateBattleValue()
Calculates the battle value of this entity |
int |
calculateBattleValue(boolean ignoreC3,
boolean ignorePilot)
Calculates the battle value of this mech. |
protected int |
calculateWalk()
|
boolean |
canChangeSecondaryFacing()
Can this entity change secondary facing at all? |
boolean |
canCharge()
Whether this type of unit can perform charges |
boolean |
canDFA()
Whether this type of unit can perform DFA attacks |
boolean |
canGoDown()
|
boolean |
canGoHullDown()
|
boolean |
canLoad(Entity unit,
boolean checkFalse)
Determines if this object can accept the given unit. |
boolean |
canRam()
Whether this type of unit can perform Ramming attacks |
boolean |
canTakeOffHorizontally()
|
boolean |
canTakeOffVertically()
|
boolean |
canUnjamRAC()
Returns true if the entity has an RAC which is jammed and not destroyed |
PilotingRollData |
checkDown(int drop,
EntityMovementType overallMoveType)
|
PilotingRollData |
checkHover(MovePath md)
|
PilotingRollData |
checkManeuver(MoveStep step,
EntityMovementType overallMoveType)
Checks if a maneuver requires a control roll |
PilotingRollData |
checkRolls(MoveStep step,
EntityMovementType overallMoveType)
|
PilotingRollData |
checkStall(MovePath md)
|
PilotingRollData |
checkThrustSI(int thrust,
EntityMovementType overallMoveType)
|
PilotingRollData |
checkThrustSITotal(int thrust,
EntityMovementType overallMoveType)
|
PilotingRollData |
checkVelocityDouble(int velocity,
EntityMovementType overallMoveType)
|
PilotingRollData |
checkVerticalTakeOff()
|
int |
chooseSideRam(Coords src)
|
int |
clipSecondaryFacing(int n)
Returns the closest valid secondary facing to the given direction. |
boolean |
didAccDecNow()
|
boolean |
didAccLast()
|
boolean |
didFailManeuver()
|
boolean |
doomedInAtmosphere()
|
boolean |
doomedInSpace()
|
boolean |
doomedInVacuum()
|
boolean |
doomedOnGround()
|
int |
get0SI()
|
int |
getAltLoss()
|
double |
getArmorRemainingPercent()
Returns the percent of the armor remaining |
int |
getArmorType()
|
int |
getAvionicsHits()
|
int |
getBadCriticals(int type,
int index,
int loc)
The number of critical slots that are destroyed in the component. |
int[] |
getBombChoices()
|
int |
getBombPoints()
|
double |
getBVTypeModifier()
|
int |
getCap0Armor()
|
int |
getCapArmor()
|
int |
getCICHits()
|
int |
getClusterMods()
get modifications to the cluster hit table for critical hits |
int |
getCockpitType()
|
java.lang.String |
getCockpitTypeString()
|
static java.lang.String |
getCockpitTypeString(int inCockpitType)
|
double |
getCost(boolean ignoreAmmo)
There is a mistake in some of the AT2r costs for some reason they added ammo twice for a lot of the level 2 designs, leading to costs that are too high |
int |
getCriticalEffect(int roll,
int target)
get the type of critical caused by a critical roll, taking account of existing damage |
int |
getCurrentDamage()
|
int |
getCurrentThrust()
Thi is the same as getWalkMP, but does not divide by 2 when grounded |
int |
getCurrentVelocity()
|
int |
getCurrentVelocityActual()
|
int |
getDependentLocation(int loc)
Gets the location that is destroyed recursively |
int |
getECCMBonus()
|
int |
getECCMRoll()
|
double |
getECCMStrength()
|
int |
getECCMTarget()
|
int |
getECMRange()
What's the range of the ECM equipment? |
int |
getElevation()
Returns the elevation of this entity. |
int |
getEngineCritHeat()
Returns extra heat generated by engine crits |
int |
getEngineHits()
|
int |
getFatalThresh()
|
int |
getFCSHits()
|
int |
getForwardArc()
see Entity.getForwardArc() |
int |
getFuel()
|
int |
getFuelUsed(int thrust)
|
int |
getGravPrimaryThreshold()
|
int |
getGravSecondaryThreshold()
|
int |
getHeatCapacity()
Returns the amount of heat that the entity can sink each turn. |
int |
getHeatCapacityWithWater()
Returns the amount of heat that the entity can sink each turn, factoring in whether the entity is standing in water. |
int |
getHeatSinks()
|
int |
getHeatType()
|
int |
getIgnoredCrewHits()
|
double |
getInternalRemainingPercent()
Returns the percent of the SI remaining |
int |
getLeftThrustHits()
|
java.lang.String[] |
getLocationAbbrs()
|
java.lang.String[] |
getLocationNames()
|
int |
getMaxBombPoints()
|
int |
getMaxElevationChange()
The maximum elevation change the entity can cross |
int |
getMaxEngineHits()
|
java.lang.String |
getMovementAbbr(EntityMovementType mtype)
Returns the name of the type of movement used. |
java.lang.String |
getMovementString(EntityMovementType mtype)
Returns the name of the type of movement used. |
int |
getNextVelocity()
|
int[] |
getNoOfSlots()
|
int |
getOppositeLocation(int loc)
what location is opposite the given one |
int |
getPotCrit()
|
int |
getRearArc()
see Entity.getRearArc() |
int |
getRightThrustHits()
|
int |
getRunMPwithoutMASC(boolean gravity,
boolean ignoreheat)
Tanks don't have MASC |
int |
getSensorHits()
|
int |
getSI()
|
int |
getStandardDamage(int loc)
|
int |
getStraightMoves()
|
int |
getSuspensionFactor()
|
int |
getTakeOffLength()
|
int |
getThresh(int loc)
|
int |
getTotalCommGearTons()
|
HitData |
getTransferLocation(HitData hit)
Gets the location that excess damage transfers to |
int |
getWalkMP(boolean gravity,
boolean ignoreheat)
Returns this entity's safe thrust, factored for heat, extreme temperatures, gravity, and bomb load. |
int |
getWeaponArc(int wn)
Returns the Compute.ARC that the weapon fires into. |
int |
getWhoFirst()
|
boolean |
hasArmoredEngine()
|
boolean |
hasCase()
check to see if case is available anywhere |
boolean |
hasLifeSupport()
|
boolean |
hasModularArmor()
|
boolean |
hasModularArmor(int loc)
|
boolean |
hasRearArmor(int loc)
Does this location have rear armor? |
boolean |
hasRoomForHorizontalTakeOff()
|
int |
height()
Returns the height of the unit, that is, how many levels above it's elevation is it for LOS purposes. |
void |
initializeSI(int val)
|
void |
initializeThresh(int loc)
|
boolean |
isCrewProtected()
|
boolean |
isGearHit()
|
boolean |
isHexProhibited(IHex hex)
Returns true if the specified hex contains some sort of prohibited terrain. |
boolean |
isImmobile()
Is this entity shut down or is the crew unconscious? |
boolean |
isNuclearHardened()
Checks if the unit is hardened agaist nuclear strikes. |
boolean |
isOutControl()
|
boolean |
isOutControlTotal()
|
boolean |
isOutCtrlHeat()
|
boolean |
isRandomMove()
|
boolean |
isRepairable()
Determine if the unit can be repaired, or only harvested for spares. |
boolean |
isRolled()
|
boolean |
isSecondaryArcWeapon(int weaponId)
Returns true if this weapon fires into the secondary facing arc. |
boolean |
isSpheroid()
|
boolean |
isValidSecondaryFacing(int n)
Can this entity torso/turret twist the given direction? |
boolean |
isVSTOL()
|
void |
land()
|
void |
liftOff(int altitude)
|
int |
locations()
Returns the number of locations in the entity |
void |
newRound(int roundNumber)
Start a new round |
void |
resetAltLoss()
|
void |
resetStandardDamage()
|
void |
restore()
Restores the entity after serialization |
int |
rollArcs(int arc)
switches certain arcs due to rolling |
HitData |
rollHitLocation(int table,
int side)
Rolls up a hit location |
HitData |
rollHitLocation(int table,
int side,
int aimedLocation,
int aimingMode)
Rolls up a hit location |
void |
set0SI(int si)
|
void |
setAccDecNow(boolean b)
|
void |
setAccLast(boolean b)
|
void |
setAltLoss(int i)
|
void |
setArmorType(int type)
|
void |
setAvionicsHits(int hits)
|
void |
setBombChoices(int[] bc)
|
void |
setCapArmor(int i)
|
void |
setCICHits(int hits)
|
void |
setCockpitType(int type)
|
void |
setCritThresh(boolean b)
|
void |
setCurrentDamage(int i)
|
void |
setCurrentVelocity(int velocity)
|
void |
setECCMRoll(int i)
|
void |
setEngine(Engine e)
|
void |
setEngineHits(int hits)
|
void |
setFailedManeuver(boolean b)
|
void |
setFCSHits(int hits)
|
void |
setFuel(int gas)
|
void |
setGameOptions()
|
void |
setGearHit(boolean hit)
|
void |
setHeatSinks(int hs)
|
void |
setHeatType(int hstype)
|
void |
setIgnoredCrewHits(int hits)
|
void |
setLeftThrustHits(int hits)
|
void |
setLifeSupport(boolean b)
|
void |
setNextVelocity(int velocity)
|
void |
setOmni(boolean omni)
|
void |
setOutControl(boolean ocontrol)
|
void |
setOutCtrlHeat(boolean octrlheat)
|
void |
setPotCrit(int crit)
|
void |
setRandomMove(boolean randmove)
|
void |
setRightThrustHits(int hits)
|
void |
setRolled(boolean roll)
|
void |
setSensorHits(int hits)
|
void |
setSI(int si)
|
void |
setSpheroid(boolean b)
|
void |
setStraightMoves(int i)
|
void |
setThresh(int val,
int loc)
|
void |
setVSTOL(boolean b)
|
void |
setWhoFirst()
|
void |
setWingsHit(boolean b)
|
boolean |
shouldMoveBackHex(Aero other)
In cases where another unit occupies the same hex, determine if this Aero should be moved back a hex for targeting purposes |
int |
sideTableRam(Coords src)
Used to determine net velocity of ramming attack |
int |
sideTableRam(Coords src,
int face)
|
void |
updateWeaponGroups()
|
void |
useFuel(int fuelUsed)
use the specified amount of fuel for this Aero. |
java.util.Vector<Report> |
victoryReport()
Generates a vector containing reports on all useful information about this entity. |
boolean |
wasCritThresh()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int LOC_NOSE
public static final int LOC_LWING
public static final int LOC_RWING
public static final int LOC_AFT
public static final int LOC_WINGS
public static final int RAM_TOWARD_DIR
public static final int RAM_TOWARD_OBL
public static final int RAM_AWAY_OBL
public static final int RAM_AWAY_DIR
public static final int HEAT_SINGLE
public static final int HEAT_DOUBLE
public static final int COCKPIT_STANDARD
public static final int COCKPIT_SMALL
public static final int COCKPIT_COMMAND_CONSOLE
public static final java.lang.String[] COCKPIT_STRING
public static final java.lang.String[] COCKPIT_SHORT_STRING
public static final int CRIT_NONE
public static final int CRIT_CREW
public static final int CRIT_FCS
public static final int CRIT_WEAPON
public static final int CRIT_CONTROL
public static final int CRIT_SENSOR
public static final int CRIT_BOMB
public static final int CRIT_ENGINE
public static final int CRIT_FUEL_TANK
public static final int CRIT_AVIONICS
public static final int CRIT_GEAR
public static final int CRIT_HEATSINK
public static final int CRIT_CARGO
public static final int CRIT_DOCK_COLLAR
public static final int CRIT_DOOR
public static final int CRIT_KF_BOOM
public static final int CRIT_LIFE_SUPPORT
public static final int CRIT_LEFT_THRUSTER
public static final int CRIT_RIGHT_THRUSTER
public static final int CRIT_CIC
public static final int CRIT_KF_DRIVE
public static final int CRIT_GRAV_DECK
public static final int CRIT_WEAPON_BROAD
public static final java.lang.String SPACE_BOMB_ATTACK
public static final java.lang.String DIVE_BOMB_ATTACK
public static final java.lang.String ALT_BOMB_ATTACK
boolean critThresh
boolean vstol
java.util.Map<java.lang.String,java.lang.Integer> weaponGroups
| Constructor Detail |
|---|
public Aero()
| Method Detail |
|---|
public java.lang.String[] getLocationAbbrs()
getLocationAbbrs in class Entitypublic java.lang.String[] getLocationNames()
getLocationNames in class Entity
public int getWalkMP(boolean gravity,
boolean ignoreheat)
getWalkMP in class Entitygravity - Should the movement be factored for gravityignoreheat - Should heat be ignored?public int getCurrentThrust()
public int locations()
locations in class Entitypublic boolean canChangeSecondaryFacing()
Entity
canChangeSecondaryFacing in class Entitypublic boolean isValidSecondaryFacing(int n)
Entity
isValidSecondaryFacing in class Entitypublic int clipSecondaryFacing(int n)
Entity
clipSecondaryFacing in class Entitypublic boolean isOutControlTotal()
public boolean isOutControl()
public boolean isOutCtrlHeat()
public boolean isRandomMove()
public boolean didAccLast()
public boolean hasLifeSupport()
public void setLifeSupport(boolean b)
public boolean isRolled()
public void setOutControl(boolean ocontrol)
public void setOutCtrlHeat(boolean octrlheat)
public void setRandomMove(boolean randmove)
public void setRolled(boolean roll)
public void setAccLast(boolean b)
public int getBombPoints()
public int getMaxBombPoints()
public void autoSetMaxBombPoints()
public int[] getBombChoices()
public void setBombChoices(int[] bc)
public void setWhoFirst()
public int getWhoFirst()
public int getCurrentVelocity()
public void setCurrentVelocity(int velocity)
public int getNextVelocity()
public void setNextVelocity(int velocity)
public int getCurrentVelocityActual()
public int getPotCrit()
public void setPotCrit(int crit)
public int getSI()
public int get0SI()
public int getCapArmor()
public void setCapArmor(int i)
public int getCap0Armor()
public int getFatalThresh()
public int getCurrentDamage()
public void setCurrentDamage(int i)
public void set0SI(int si)
public void autoSetSI()
public void autoSetCapArmor()
public void autoSetFatalThresh()
public void initializeSI(int val)
public void setSI(int si)
public int getSensorHits()
public void setSensorHits(int hits)
public int getFCSHits()
public void setFCSHits(int hits)
public void setCICHits(int hits)
public int getCICHits()
public void setIgnoredCrewHits(int hits)
public int getIgnoredCrewHits()
public int getEngineHits()
public void setEngineHits(int hits)
public int getAvionicsHits()
public void setAvionicsHits(int hits)
public boolean isGearHit()
public void setGearHit(boolean hit)
public void setHeatSinks(int hs)
public int getHeatSinks()
public void setHeatType(int hstype)
public void setLeftThrustHits(int hits)
public int getLeftThrustHits()
public void setRightThrustHits(int hits)
public int getRightThrustHits()
public int getFuel()
public void setFuel(int gas)
public int getHeatType()
public boolean wasCritThresh()
public void setCritThresh(boolean b)
public boolean isImmobile()
Entity
isImmobile in interface TargetableisImmobile in class Entitypublic void newRound(int roundNumber)
Entity
newRound in interface RoundUpdatednewRound in class EntityroundNumber - the int number of the new roundpublic java.lang.String getMovementString(EntityMovementType mtype)
getMovementString in class Entitypublic java.lang.String getMovementAbbr(EntityMovementType mtype)
getMovementAbbr in class Entitypublic boolean hasRearArmor(int loc)
Entity
hasRearArmor in class Entitypublic int getWeaponArc(int wn)
getWeaponArc in class Entitypublic int rollArcs(int arc)
public boolean isSecondaryArcWeapon(int weaponId)
isSecondaryArcWeapon in class Entity
public HitData rollHitLocation(int table,
int side,
int aimedLocation,
int aimingMode)
rollHitLocation in class Entity
public HitData rollHitLocation(int table,
int side)
Entity
rollHitLocation in class Entitypublic HitData getTransferLocation(HitData hit)
getTransferLocation in class Entitypublic int getDependentLocation(int loc)
getDependentLocation in class Entitypublic int calculateBattleValue()
Entity
calculateBattleValue in class Entity
public int calculateBattleValue(boolean ignoreC3,
boolean ignorePilot)
Entity
calculateBattleValue in class EntityignoreC3 - if the contribution of the C3 computer should be ignored when
calculating BV.ignorePilot - if the extra BV due to piloting skill should be ignore, needed
for c3 bvpublic double getBVTypeModifier()
public PilotingRollData addEntityBonuses(PilotingRollData prd)
Entity
addEntityBonuses in class Entitypublic java.util.Vector<Report> victoryReport()
Entity
victoryReport in class Entitypublic int[] getNoOfSlots()
getNoOfSlots in class Entity
public int getRunMPwithoutMASC(boolean gravity,
boolean ignoreheat)
getRunMPwithoutMASC in class Entitypublic int getHeatCapacity()
Entity
getHeatCapacity in class Entitypublic int getHeatCapacityWithWater()
Entity
getHeatCapacityWithWater in class Entitypublic int getEngineCritHeat()
Entity
getEngineCritHeat in class Entitypublic void autoSetInternal()
Entity
autoSetInternal in class Entitypublic void autoSetThresh()
public void setThresh(int val,
int loc)
public void initializeThresh(int loc)
public int getThresh(int loc)
public boolean isRepairable()
isRepairable in class Entityboolean that is true if the unit
can be repaired (given enough time and parts); if this value
is false, the unit is only a source of spares.Entity.isSalvage()public void restore()
restore in class Entitypublic boolean canCharge()
Entity
canCharge in class Entitypublic boolean canDFA()
Entity
canDFA in class Entitypublic boolean canRam()
Entity
canRam in class Entitypublic int getArmorType()
getArmorType in class Entitypublic void setArmorType(int type)
setArmorType in class Entitypublic int getSuspensionFactor()
public double getCost(boolean ignoreAmmo)
getCost in class Entitypublic boolean doomedInVacuum()
doomedInVacuum in class Entitypublic boolean doomedOnGround()
doomedOnGround in class Entitypublic boolean doomedInAtmosphere()
doomedInAtmosphere in class Entitypublic boolean doomedInSpace()
doomedInSpace in class Entitypublic boolean canGoHullDown()
canGoHullDown in class Entitypublic void setEngine(Engine e)
public double getInternalRemainingPercent()
getInternalRemainingPercent in class Entityprotected int calculateWalk()
public boolean isNuclearHardened()
Entity
isNuclearHardened in class Entity
protected void addEquipment(Mounted mounted,
int loc,
boolean rearMounted)
throws LocationFullException
addEquipment in class EntityLocationFullException
public int getCriticalEffect(int roll,
int target)
roll - the final dice rollloc - the hit location
public PilotingRollData checkThrustSI(int thrust,
EntityMovementType overallMoveType)
public PilotingRollData checkThrustSITotal(int thrust,
EntityMovementType overallMoveType)
public PilotingRollData checkVelocityDouble(int velocity,
EntityMovementType overallMoveType)
public PilotingRollData checkDown(int drop,
EntityMovementType overallMoveType)
public PilotingRollData checkHover(MovePath md)
public PilotingRollData checkStall(MovePath md)
public PilotingRollData checkRolls(MoveStep step,
EntityMovementType overallMoveType)
public PilotingRollData checkVerticalTakeOff()
public PilotingRollData checkManeuver(MoveStep step,
EntityMovementType overallMoveType)
public void setOmni(boolean omni)
setOmni in class Entitypublic void addClanCase()
public boolean hasCase()
public int sideTableRam(Coords src)
public int sideTableRam(Coords src,
int face)
public int chooseSideRam(Coords src)
public int getStandardDamage(int loc)
public void resetStandardDamage()
public void addStandardDamage(int damage,
HitData hit)
public int getMaxEngineHits()
public int getMaxElevationChange()
Entity
getMaxElevationChange in class Entitypublic boolean isHexProhibited(IHex hex)
Entity
isHexProhibited in class Entitypublic boolean isSpheroid()
public void setSpheroid(boolean b)
public int height()
Entity
height in class Entitypublic boolean canUnjamRAC()
canUnjamRAC in class Entitypublic void applyBombs()
public int getStraightMoves()
public void setStraightMoves(int i)
public boolean isVSTOL()
public void setVSTOL(boolean b)
public int getFuelUsed(int thrust)
public boolean didFailManeuver()
public void setFailedManeuver(boolean b)
public void setAccDecNow(boolean b)
public boolean didAccDecNow()
public void setGameOptions()
setGameOptions in class Entitypublic boolean hasModularArmor()
hasModularArmor in class Entitypublic boolean hasModularArmor(int loc)
hasModularArmor in class Entitypublic int getTotalCommGearTons()
getTotalCommGearTons in class Entity
public int getBadCriticals(int type,
int index,
int loc)
getBadCriticals in class Entitypublic int getCockpitType()
public void setCockpitType(int type)
public java.lang.String getCockpitTypeString()
public static java.lang.String getCockpitTypeString(int inCockpitType)
public double getArmorRemainingPercent()
Entity
getArmorRemainingPercent in class Entitypublic boolean areWingsHit()
public void setWingsHit(boolean b)
public int getOppositeLocation(int loc)
public int getClusterMods()
public int getECMRange()
getECMRange in class Entityint range of this unit's ECM. This value will
be Entity.NONE if no ECM is active.public double getECCMStrength()
getECCMStrength in class Entitypublic void setECCMRoll(int i)
public int getECCMRoll()
public int getECCMTarget()
public int getECCMBonus()
public boolean isCrewProtected()
public int getGravSecondaryThreshold()
public int getGravPrimaryThreshold()
public boolean canLoad(Entity unit,
boolean checkFalse)
canLoad in class Entityunit - - the Entity to be loaded.
true if the unit can be loaded,
false otherwise.public void useFuel(int fuelUsed)
public void updateWeaponGroups()
public boolean shouldMoveBackHex(Aero other)
otherPos -
public boolean hasArmoredEngine()
hasArmoredEngine in class Entitypublic int getForwardArc()
Entity.getForwardArc()
getForwardArc in class Entitypublic int getRearArc()
Entity.getRearArc()
getRearArc in class Entitypublic int getAltLoss()
public void setAltLoss(int i)
public void resetAltLoss()
public int getElevation()
Entity
getElevation in interface TargetablegetElevation in class Entitypublic boolean canGoDown()
canGoDown in class Entitypublic void liftOff(int altitude)
public void land()
public int getTakeOffLength()
public boolean canTakeOffHorizontally()
public boolean hasRoomForHorizontalTakeOff()
public boolean canTakeOffVertically()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||