|
|||||||||
| 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
megamek.common.Jumpship
public class Jumpship
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class megamek.common.Entity |
|---|
Entity.EntityFluff |
| Field Summary | |
|---|---|
(package private) boolean |
hasLF
|
static int |
LOC_AFT
|
static int |
LOC_ALS
|
static int |
LOC_ARS
|
static int |
LOC_FLS
|
static int |
LOC_FRS
|
static int |
LOC_NOSE
|
| 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 | |
|---|---|
Jumpship()
|
|
| Method Summary | |
|---|---|
void |
addStandardDamage(int damage,
HitData hit)
|
void |
autoSetThresh()
|
int |
calculateBattleValue(boolean ignoreC3,
boolean ignorePilot)
Calculates the battle value of this mech. |
boolean |
canJump()
|
boolean |
doomedInAtmosphere()
|
boolean |
doomedInSpace()
|
boolean |
doomedOnGround()
|
double |
getAccumulatedThrust()
|
int |
getAdjacentArcCCW(int arc)
find the adjacent firing arc on this vessel counter-clockwise |
int |
getAdjacentArcCW(int arc)
find the adjacent firing arc on this vessel clockwise |
int |
getArcswGuns()
|
double |
getArmorWeight(int loc)
|
double |
getBVTypeModifier()
|
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 |
getECMRange()
What's the range of the ECM equipment? |
int |
getEscapePods()
|
double |
getFuelPerTon()
|
int |
getGravDeck()
|
int |
getGravDeckHuge()
|
int |
getGravDeckLarge()
|
int |
getHQIniBonus()
|
int |
getKFIntegrity()
|
int |
getLifeBoats()
|
java.lang.String[] |
getLocationAbbrs()
|
java.lang.String[] |
getLocationNames()
|
int |
getMaxEngineHits()
|
int |
getNCrew()
|
int |
getNPassenger()
|
int |
getOppositeLocation(int loc)
what location is opposite the given one |
int |
getRunMP(boolean gravity,
boolean ignoreheat)
|
int |
getSailIntegrity()
|
int |
getStandardDamage(int loc)
|
double |
getStationKeepingThrust()
|
int |
getThresh(int loc)
|
int |
getTotalGravDeck()
|
int |
getWeaponArc(int wn)
Returns the Compute.ARC that the weapon fires into. |
boolean |
hasActiveECM()
All military jumpships automatically have ECM if in space |
boolean |
hasHPG()
|
boolean |
hasLF()
|
boolean |
hasWeaponInArc(int loc)
|
void |
initializeKFIntegrity()
|
void |
initializeSailIntegrity()
|
void |
initializeThresh(int loc)
|
boolean |
isCrewProtected()
|
boolean |
loadWeapon(Mounted mounted,
Mounted mountedAmmo)
need to check bay location before loading ammo |
int |
locations()
Returns the number of locations in the entity |
void |
newRound(int roundNumber)
Start a new round |
void |
resetStandardDamage()
|
HitData |
rollHitLocation(int table,
int side)
Rolls up a hit location |
void |
setAccumulatedThrust(double d)
|
void |
setEngine(Engine e)
|
void |
setEscapePods(int n)
|
void |
setGravDeck(int n)
|
void |
setGravDeckHuge(int n)
|
void |
setGravDeckLarge(int n)
|
void |
setHPG(boolean b)
|
void |
setKFIntegrity(int kf)
|
void |
setLF(boolean b)
|
void |
setLifeBoats(int n)
|
void |
setNCrew(int crew)
|
void |
setNPassenger(int pass)
|
void |
setSailIntegrity(int sail)
|
void |
setThresh(int val,
int loc)
|
| 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_FLS
public static final int LOC_FRS
public static final int LOC_AFT
public static final int LOC_ALS
public static final int LOC_ARS
boolean hasLF
| Constructor Detail |
|---|
public Jumpship()
| Method Detail |
|---|
public int locations()
Aero
locations in class Aeropublic int getTotalGravDeck()
public void setGravDeck(int n)
public int getGravDeck()
public void setGravDeckLarge(int n)
public int getGravDeckLarge()
public void setGravDeckHuge(int n)
public int getGravDeckHuge()
public void setHPG(boolean b)
public boolean hasHPG()
public void setLF(boolean b)
public boolean hasLF()
public void setEscapePods(int n)
public int getEscapePods()
public void setLifeBoats(int n)
public int getLifeBoats()
public void setNCrew(int crew)
public void setNPassenger(int pass)
public int getNCrew()
public int getNPassenger()
public void setThresh(int val,
int loc)
setThresh in class Aeropublic int getThresh(int loc)
getThresh in class Aeropublic void autoSetThresh()
autoSetThresh in class Aeropublic void initializeThresh(int loc)
initializeThresh in class Aeropublic java.lang.String[] getLocationAbbrs()
getLocationAbbrs in class Aeropublic java.lang.String[] getLocationNames()
getLocationNames in class Aeropublic void setKFIntegrity(int kf)
public int getKFIntegrity()
public void setSailIntegrity(int sail)
public int getSailIntegrity()
public void initializeSailIntegrity()
public void initializeKFIntegrity()
public boolean canJump()
public void setEngine(Engine e)
setEngine in class Aeropublic int getStandardDamage(int loc)
getStandardDamage in class Aeropublic void resetStandardDamage()
resetStandardDamage in class Aero
public void addStandardDamage(int damage,
HitData hit)
addStandardDamage in class Aeropublic int getWeaponArc(int wn)
Aero
getWeaponArc in class Aero
public HitData rollHitLocation(int table,
int side)
Entity
rollHitLocation in class Aeropublic int getMaxEngineHits()
getMaxEngineHits in class Aero
public int calculateBattleValue(boolean ignoreC3,
boolean ignorePilot)
Entity
calculateBattleValue in class AeroignoreC3 - 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 int getArcswGuns()
public boolean hasWeaponInArc(int loc)
public double getFuelPerTon()
public double getArmorWeight(int loc)
public double getCost(boolean ignoreAmmo)
Aero
getCost in class Aeropublic boolean doomedOnGround()
doomedOnGround in class Aeropublic boolean doomedInAtmosphere()
doomedInAtmosphere in class Aeropublic boolean doomedInSpace()
doomedInSpace in class Aero
public boolean loadWeapon(Mounted mounted,
Mounted mountedAmmo)
loadWeapon in class Entitypublic int getHQIniBonus()
getHQIniBonus in class Entitypublic int getOppositeLocation(int loc)
getOppositeLocation in class Aeropublic boolean hasActiveECM()
hasActiveECM in class Entitypublic int getECMRange()
getECMRange in class Aeroint range of this unit's ECM. This value will
be Entity.NONE if no ECM is active.public boolean isCrewProtected()
isCrewProtected in class Aeropublic double getAccumulatedThrust()
public void setAccumulatedThrust(double d)
public double getStationKeepingThrust()
public void newRound(int roundNumber)
Entity
newRound in interface RoundUpdatednewRound in class AeroroundNumber - the int number of the new round
public int getRunMP(boolean gravity,
boolean ignoreheat)
getRunMP in class Entitypublic int getAdjacentArcCW(int arc)
public int getAdjacentArcCCW(int arc)
public double getBVTypeModifier()
getBVTypeModifier in class Aero
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||