|
|||||||||
| 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.Tank
megamek.common.VTOL
public class VTOL
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class megamek.common.Entity |
|---|
Entity.EntityFluff |
| Field Summary | |
|---|---|
static int |
CRIT_COPILOT
|
static int |
CRIT_FLIGHT_STABILIZER
|
static int |
CRIT_PILOT
|
static int |
CRIT_ROTOR_DAMAGE
|
static int |
CRIT_ROTOR_DESTROYED
|
static int |
LOC_ROTOR
|
| Fields inherited from class megamek.common.Tank |
|---|
CRIT_AMMO, CRIT_CARGO, CRIT_COMMANDER, CRIT_CREW_KILLED, CRIT_CREW_STUNNED, CRIT_DRIVER, CRIT_ENGINE, CRIT_FUEL_TANK, CRIT_NONE, CRIT_SENSOR, CRIT_STABILIZER, CRIT_TURRET_DESTROYED, CRIT_TURRET_JAM, CRIT_TURRET_LOCK, CRIT_WEAPON_DESTROYED, CRIT_WEAPON_JAM, engineHit, LOC_BODY, LOC_FRONT, LOC_LEFT, LOC_REAR, LOC_RIGHT, LOC_TURRET, m_bHasNoTurret, m_bTurretEverJammed, m_bTurretJammed, m_bTurretLocked, movementDamage |
| 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 | |
|---|---|
VTOL()
|
|
| Method Summary | |
|---|---|
PilotingRollData |
addEntityBonuses(PilotingRollData prd)
Add in any piloting skill mods |
boolean |
canCharge()
Whether this type of unit can perform charges |
PilotingRollData |
checkSkid(EntityMovementType moveType,
IHex prevHex,
EntityMovementType overallMoveType,
MoveStep prevStep,
int prevFacing,
int curFacing,
Coords lastPos,
Coords curPos,
boolean isInfantry,
int distance)
Checks if the entity might skid on pavement. |
boolean |
doomedInAtmosphere()
|
boolean |
doomedInSpace()
|
boolean |
doomedInVacuum()
|
int |
getCriticalEffect(int roll,
int loc)
get the type of critical caused by a critical roll, taking account of existing damage |
java.lang.String[] |
getLocationAbbrs()
|
java.lang.String[] |
getLocationNames()
|
int |
getMaxElevationChange()
The maximum elevation change the entity can cross |
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. |
boolean |
isHexProhibited(IHex hex)
Tanks have all sorts of prohibited terrain. |
boolean |
isRepairable()
Determine if the unit can be repaired, or only harvested for spares. |
HitData |
rollHitLocation(int table,
int side,
int aimedLocation,
int aimingMode)
Rolls up a hit location |
void |
setOnFire(boolean inferno)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int LOC_ROTOR
public static final int CRIT_COPILOT
public static final int CRIT_PILOT
public static final int CRIT_ROTOR_DAMAGE
public static final int CRIT_ROTOR_DESTROYED
public static final int CRIT_FLIGHT_STABILIZER
| Constructor Detail |
|---|
public VTOL()
| Method Detail |
|---|
public java.lang.String[] getLocationAbbrs()
getLocationAbbrs in class Tankpublic java.lang.String[] getLocationNames()
getLocationNames in class Tank
public PilotingRollData checkSkid(EntityMovementType moveType,
IHex prevHex,
EntityMovementType overallMoveType,
MoveStep prevStep,
int prevFacing,
int curFacing,
Coords lastPos,
Coords curPos,
boolean isInfantry,
int distance)
Entity
checkSkid in class Entitypublic boolean canCharge()
Entity
canCharge in class Tankpublic java.lang.String getMovementString(EntityMovementType mtype)
getMovementString in class Tankpublic java.lang.String getMovementAbbr(EntityMovementType mtype)
getMovementAbbr in class Tankpublic int getMaxElevationChange()
Entity
getMaxElevationChange in class Tankpublic boolean isHexProhibited(IHex hex)
Tank
isHexProhibited in class Tankpublic boolean isRepairable()
Tank
isRepairable in class Tankboolean 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 HitData rollHitLocation(int table,
int side,
int aimedLocation,
int aimingMode)
Tank
rollHitLocation in class Tankpublic boolean doomedInVacuum()
doomedInVacuum in class Tankpublic boolean doomedInAtmosphere()
doomedInAtmosphere in class Tankpublic boolean doomedInSpace()
doomedInSpace in class Tankpublic void setOnFire(boolean inferno)
setOnFire in class Tank
public int getCriticalEffect(int roll,
int loc)
getCriticalEffect in class Tankroll - the final dice rollloc - the hit location
public PilotingRollData addEntityBonuses(PilotingRollData prd)
Entity
addEntityBonuses in class Tank
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||