megamek.common
Interface Targetable
- All Superinterfaces:
- java.io.Serializable
- All Known Implementing Classes:
- Aero, ArmlessMech, BattleArmor, BipedMech, BuildingTarget, ConvFighter, Dropship, Entity, FighterSquadron, GunEmplacement, HexTarget, INarcPod, Infantry, Jumpship, LandAirMech, LargeSupportTank, Mech, MechWarrior, MinefieldTarget, Protomech, QuadMech, SmallCraft, SpaceStation, SupportTank, SupportVTOL, Tank, TeleMissile, VTOL, Warship
public interface Targetable
- extends java.io.Serializable
TYPE_ENTITY
static final int TYPE_ENTITY
- See Also:
- Constant Field Values
TYPE_HEX_CLEAR
static final int TYPE_HEX_CLEAR
- See Also:
- Constant Field Values
TYPE_HEX_IGNITE
static final int TYPE_HEX_IGNITE
- See Also:
- Constant Field Values
TYPE_BUILDING
static final int TYPE_BUILDING
- See Also:
- Constant Field Values
TYPE_BLDG_IGNITE
static final int TYPE_BLDG_IGNITE
- See Also:
- Constant Field Values
TYPE_MINEFIELD_CLEAR
static final int TYPE_MINEFIELD_CLEAR
- See Also:
- Constant Field Values
TYPE_MINEFIELD_DELIVER
static final int TYPE_MINEFIELD_DELIVER
- See Also:
- Constant Field Values
TYPE_HEX_ARTILLERY
static final int TYPE_HEX_ARTILLERY
- See Also:
- Constant Field Values
TYPE_HEX_EXTINGUISH
static final int TYPE_HEX_EXTINGUISH
- See Also:
- Constant Field Values
TYPE_INARC_POD
static final int TYPE_INARC_POD
- See Also:
- Constant Field Values
TYPE_SEARCHLIGHT
static final int TYPE_SEARCHLIGHT
- See Also:
- Constant Field Values
TYPE_FLARE_DELIVER
static final int TYPE_FLARE_DELIVER
- See Also:
- Constant Field Values
TYPE_HEX_BOMB
static final int TYPE_HEX_BOMB
- See Also:
- Constant Field Values
TYPE_FUEL_TANK
static final int TYPE_FUEL_TANK
- See Also:
- Constant Field Values
TYPE_FUEL_TANK_IGNITE
static final int TYPE_FUEL_TANK_IGNITE
- See Also:
- Constant Field Values
TYPE_HEX_SCREEN
static final int TYPE_HEX_SCREEN
- See Also:
- Constant Field Values
TYPE_HEX_AERO_BOMB
static final int TYPE_HEX_AERO_BOMB
- See Also:
- Constant Field Values
getTargetType
int getTargetType()
getTargetId
int getTargetId()
getPosition
Coords getPosition()
- Returns:
- the coordinates of the hex containing the target
absHeight
int absHeight()
- Returns:
- elevation of the top (e.g. torso) of the target relative to
surface
getHeight
int getHeight()
- Returns:
- height of the target in elevation levels
getElevation
int getElevation()
- Returns:
- elevation of the bottom (e.g. legs) of the target relative to
surface
getAltitude
int getAltitude()
- Returns:
- altitude of target
isImmobile
boolean isImmobile()
- Returns:
- true if the target is immobile (-4 to hit)
getDisplayName
java.lang.String getDisplayName()
- Returns:
- name of the target for ui purposes
sideTable
int sideTable(Coords src)
- Returns:
- side hit from location
sideTable
int sideTable(Coords src,
boolean usePrior)
- Returns:
- side hit from location
isOffBoard
boolean isOffBoard()
- Returns:
- if this is off the board
isAirborne
boolean isAirborne()
- Returns:
- Is the entity airborne in the fashion of an aerospace unit?
Does not include VTOL movement (see
isAirborneVTOL()
isAirborneVTOL
boolean isAirborneVTOL()
- Returns:
- is the entity airborne in the fashion of a VTOL
Not used for aerospace units, see
isAirborne()