|
|||||||||
| 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
public class BipedMech
| 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 | |
|---|---|
BipedMech()
|
|
BipedMech(int inGyroType,
int inCockpitType)
|
|
BipedMech(java.lang.String inGyroType,
java.lang.String inCockpitType)
|
|
| Method Summary | |
|---|---|
PilotingRollData |
addEntityBonuses(PilotingRollData roll)
Add in any piloting skill mods |
void |
addStandingPenalties(PilotingRollData roll)
|
boolean |
canFlipArms()
Returns true if the entity can flip its arms |
boolean |
canGoHullDown()
|
boolean |
cannotStandUpFromHullDown()
|
PilotingRollData |
checkGetUp(MoveStep step)
Checks if the entity is getting up. |
int |
getActiveVibrobladeHeat(int location)
Checks for Active Vibroblades in location and returns the
amount of heat genereated if active. |
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 |
getNumberOfShields(long size)
Check to see how many shields of a certain size a mek has. you can have up to shields per mek. |
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. |
boolean |
hasActiveShield(int location)
Does the mech have an active shield This should only be called by hasActiveShield(location,rear) |
boolean |
hasActiveShield(int location,
boolean rear)
Does the mech have an active shield This should only be called after hasShield has been called. |
boolean |
hasClaw(int location)
Check to see if a Biped mech has a claw in one of its arms |
boolean |
hasFunctionalArmAES(int location)
Checks is Biped Mek has functional AES in the location. |
boolean |
hasFunctionalLegAES()
Checks for functional AES in both legs |
boolean |
hasNoDefenseShield(int location)
Does the mech have an shield in no defense mode |
boolean |
hasPassiveShield(int location)
Does the mech have a passive shield This should only be called by hasPassiveShield(location,rear) |
boolean |
hasPassiveShield(int location,
boolean rear)
Does the mech have a passive shield This should only be called after hasShield has been called. |
boolean |
hasRetractedBlade(int loc)
Does the entity have a retracted blade in the given location |
boolean |
hasShield()
Does the mech have any shields. a mech can have up to 2 shields. |
boolean |
hasVibroblades()
Checks to see if this bipmech has any vibro blades on them. |
boolean |
hasVibrobladesInLocation(int location)
Checks to see if this bipedmech has a vibroblade in this location. |
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 BipedMech(java.lang.String inGyroType,
java.lang.String inCockpitType)
public BipedMech()
public BipedMech(int inGyroType,
int inCockpitType)
| Method Detail |
|---|
public boolean canFlipArms()
canFlipArms in class Entity
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 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 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 Entityprotected double getArmActuatorCost()
getArmActuatorCost in class Mechprotected double getLegActuatorCost()
getLegActuatorCost in class Mechpublic boolean hasClaw(int location)
location - (LOC_RARM or LOC_LARM)
public boolean hasVibroblades()
hasVibroblades in class Entitytrue if the mech has vibroblades
false if not.public boolean hasVibrobladesInLocation(int location)
location -
true if the mech has vibroblades
false if not.public boolean hasRetractedBlade(int loc)
hasRetractedBlade in class Mechpublic int getActiveVibrobladeHeat(int location)
location and returns the
amount of heat genereated if active.
getActiveVibrobladeHeat in class Entitylocation -
int amount of heat genereated by an active
vibroblade.public boolean hasShield()
hasShield in class Entitytrue if unit has a shield crit.public int getNumberOfShields(long size)
getNumberOfShields in class Entity
public boolean hasActiveShield(int location,
boolean rear)
hasActiveShield in class Entitypublic boolean hasActiveShield(int location)
hasActiveShield in class Entity
public boolean hasPassiveShield(int location,
boolean rear)
hasPassiveShield in class Entitypublic boolean hasPassiveShield(int location)
hasPassiveShield in class Entitypublic boolean hasNoDefenseShield(int location)
hasNoDefenseShield in class Entitypublic boolean hasFunctionalArmAES(int location)
hasFunctionalArmAES in class Entitypublic boolean hasFunctionalLegAES()
hasFunctionalLegAES in class Entitypublic boolean canGoHullDown()
canGoHullDown in class Entitypublic PilotingRollData checkGetUp(MoveStep step)
Entity
checkGetUp in class Entitypublic void addStandingPenalties(PilotingRollData roll)
public boolean cannotStandUpFromHullDown()
cannotStandUpFromHullDown in class Mech
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||