|
|||||||||
| 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.Mech
megamek.common.BipedMech
megamek.common.LandAirMech
public class LandAirMech
This lass represents Land Air Mechs. It is to be considered experimental, and not yet ready for release.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class megamek.common.Entity |
|---|
Entity.EntityFluff |
| Field Summary | |
|---|---|
static int |
MODE_AIRCRAFT
|
static int |
MODE_AIRMECH
|
static int |
MODE_CONVERT
this is a placeholder for generic conversions. |
static int |
MODE_CONVERT_AIRCRAFT_TO_AIRMECH
|
static int |
MODE_CONVERT_AIRCRAFT_TO_MECH
|
static int |
MODE_CONVERT_AIRMECH_TO_AIRCRAFT
|
static int |
MODE_CONVERT_AIRMECH_TO_MECH
|
static int |
MODE_CONVERT_MECH_TO_AIRCRAFT
|
static int |
MODE_CONVERT_MECH_TO_AIRMECH
|
static int |
MODE_MECH
|
| 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 | |
|---|---|
LandAirMech()
|
|
LandAirMech(int inGyroType,
int inCockpitType)
|
|
LandAirMech(java.lang.String inGyroType,
java.lang.String inCockpitType)
|
|
| Method Summary | |
|---|---|
boolean |
canConvertToAircraft()
Returns true if the mech can transform into fighter mode, false otherwise. |
boolean |
canConvertToAirmech()
Returns true if the mech can transform into airmek mode, false otherwise. |
boolean |
canConvertToMech()
Returns true if the mech can transform into mech mode, false otherwise. |
boolean |
canConvertToMode(int convertMode)
Returns true if the mech can transform into the given mode, false otherwise. |
boolean |
canGoDown(int assumedElevation,
Coords assumedPos)
is it possible to go down, or are we landed/just above the water/treeline? |
boolean |
canGoUp(int assumedElevation,
Coords assumedPos)
is it possible to go up, or are we at maximum altitude? |
void |
convertToMode(int newMode)
Tries to convert the mech to the given mode, following all the restrictions. |
int |
getElevation()
Returns the elevation of the LAM, correct in Mech mode, but needs fixing in other modes. |
int |
getJumpHeat(int movedMP)
How much heat is gained from jumping, airmechs don't gain jumping heat. |
int |
getJumpMP()
This mech's jumping MP modified for missing jump jets and gravity |
int |
getJumpMPWithTerrain()
Returns this mech's jumping MP, modified for missing & underwater jets and gravity. |
int |
getMaxElevationChange()
The maximum elevation change the entity can cross |
int |
getMode()
Returns the Mode this mech is on. |
int |
getOriginalJumpMP()
This function returns the original jump MP for the mode the mech is in. |
int |
getOriginalWalkMP()
Returns the original walking MP for that mode or that conversion. |
boolean |
isAirborne()
returns true if the mech is flying. |
boolean |
isEligibleForFiring()
Can this entity fire this turn? |
boolean |
isInMode(int testMode)
Returns true if the mech is in the given mode, false otherwise. |
void |
newRound(int roundNumber)
Start a new round |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int MODE_MECH
public static final int MODE_AIRMECH
public static final int MODE_AIRCRAFT
public static final int MODE_CONVERT
public static final int MODE_CONVERT_MECH_TO_AIRMECH
public static final int MODE_CONVERT_MECH_TO_AIRCRAFT
public static final int MODE_CONVERT_AIRMECH_TO_MECH
public static final int MODE_CONVERT_AIRMECH_TO_AIRCRAFT
public static final int MODE_CONVERT_AIRCRAFT_TO_MECH
public static final int MODE_CONVERT_AIRCRAFT_TO_AIRMECH
| Constructor Detail |
|---|
public LandAirMech(java.lang.String inGyroType,
java.lang.String inCockpitType)
public LandAirMech()
public LandAirMech(int inGyroType,
int inCockpitType)
| Method Detail |
|---|
public int getElevation()
getElevation in interface TargetablegetElevation in class Mech
public boolean canGoUp(int assumedElevation,
Coords assumedPos)
canGoUp in class Entity
public boolean canGoDown(int assumedElevation,
Coords assumedPos)
canGoDown in class Entitypublic int getMode()
public boolean isInMode(int testMode)
testMode - One of the MODE_* or the MODE_CONVERT_* constants.
public boolean canConvertToMech()
public boolean canConvertToAirmech()
public boolean canConvertToAircraft()
public boolean canConvertToMode(int convertMode)
public void convertToMode(int newMode)
newMode - public int getMaxElevationChange()
Entity
getMaxElevationChange in class Mechpublic void newRound(int roundNumber)
Entity
newRound in interface RoundUpdatednewRound in class MechroundNumber - the int number of the new roundpublic int getOriginalJumpMP()
getOriginalJumpMP in class Entitypublic int getJumpHeat(int movedMP)
getJumpHeat in class MechmovedMP - the number of movement points spentpublic boolean isEligibleForFiring()
isEligibleForFiring in class Entitypublic int getOriginalWalkMP()
getOriginalWalkMP in class Entitypublic boolean isAirborne()
isAirborne in interface TargetableisAirborne in class Entitypublic int getJumpMP()
Mech
getJumpMP in class Mechpublic int getJumpMPWithTerrain()
Mech
getJumpMPWithTerrain in class Mech
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||