|
|||||||||
| 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.QuadMech
public class QuadMech
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class megamek.common.Entity |
|---|
Entity.EntityFluff |
| Field Summary |
|---|
| 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 | |
|---|---|
QuadMech()
|
|
QuadMech(int inGyroType,
int inCockpitType)
|
|
QuadMech(java.lang.String inGyroType,
java.lang.String inCockpitType)
|
|
| Method Summary | |
|---|---|
PilotingRollData |
addEntityBonuses(PilotingRollData roll)
Add in any piloting skill mods |
boolean |
canChangeSecondaryFacing()
Can this entity change secondary facing at all? |
boolean |
canGoHullDown()
|
boolean |
cannotStandUpFromHullDown()
Returns true if the Mech cannot stand up any longer. |
protected double |
getArmActuatorCost()
|
protected double |
getLegActuatorCost()
|
java.lang.String[] |
getLocationAbbrs()
Returns a vector of abbreviations for all locations |
java.lang.String[] |
getLocationNames()
Returns a vector of names for all locations |
protected int[] |
getNoOfSlots()
Returns a vector of slot counts for all locations |
int |
getRunMP(boolean gravity,
boolean ignoreheat)
Returns this mech's running/flank mp modified for leg loss & stuff. |
int |
getRunMPwithoutMASC(boolean gravity,
boolean ignoreheat)
Returns run MP without considering MASC modified for leg loss & stuff. |
int |
getWalkMP(boolean gravity,
boolean ignoreheat)
Returns this entity's walking/cruising mp, factored for heat and possibly gravity. |
int |
getWeaponArc(int wn)
Returns the Compute.ARC that the weapon fires into. |
boolean |
hasFunctionalLegAES()
Checks for functional AES in all legs |
boolean |
isArm(int loc)
Is the passed in location an arm? |
boolean |
locationIsLeg(int loc)
Returns true is the location is a leg |
boolean |
needsRollToStand()
Returns true is the entity needs a roll to stand up |
boolean |
removePartialCoverHits(int location,
int cover,
int side)
|
static int |
restrictScore(int location)
|
HitData |
rollHitLocation(int table,
int side,
int aimedLocation,
int aimingMode)
Rolls the to-hit number |
void |
setInternal(int head,
int ct,
int t,
int arm,
int leg)
Sets the internal structure for the mech. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public QuadMech(java.lang.String inGyroType,
java.lang.String inCockpitType)
public QuadMech()
public QuadMech(int inGyroType,
int inCockpitType)
| Method Detail |
|---|
public boolean cannotStandUpFromHullDown()
cannotStandUpFromHullDown in class Mech
public int getWalkMP(boolean gravity,
boolean ignoreheat)
Entity
getWalkMP in class Entitygravity - Should the movement be factored for gravityignoreheat - Should heat be ignored?
public int getRunMP(boolean gravity,
boolean ignoreheat)
getRunMP in class Mech
public int getRunMPwithoutMASC(boolean gravity,
boolean ignoreheat)
getRunMPwithoutMASC in class Mechpublic boolean canChangeSecondaryFacing()
Entity
canChangeSecondaryFacing in class Mechpublic boolean locationIsLeg(int loc)
locationIsLeg in class Mechloc - the location to check.public int getWeaponArc(int wn)
getWeaponArc in class Mech
public void setInternal(int head,
int ct,
int t,
int arm,
int leg)
setInternal in class Mechhead - headct - center torsot - right/left torsoarm - right/left armleg - right/left legpublic boolean needsRollToStand()
needsRollToStand in class Entitypublic PilotingRollData addEntityBonuses(PilotingRollData roll)
addEntityBonuses in class Mechprotected int[] getNoOfSlots()
getNoOfSlots in class Entitypublic java.lang.String[] getLocationNames()
getLocationNames in class Entitypublic java.lang.String[] getLocationAbbrs()
getLocationAbbrs in class Entitypublic static int restrictScore(int location)
protected double getArmActuatorCost()
getArmActuatorCost in class Mechprotected double getLegActuatorCost()
getLegActuatorCost in class Mech
public HitData rollHitLocation(int table,
int side,
int aimedLocation,
int aimingMode)
Entity
rollHitLocation in class Mech
public boolean removePartialCoverHits(int location,
int cover,
int side)
removePartialCoverHits in class Mechpublic boolean hasFunctionalLegAES()
hasFunctionalLegAES in class Entitypublic boolean canGoHullDown()
canGoHullDown in class Entitypublic boolean isArm(int loc)
isArm in class Mechloc -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||