|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmegamek.common.BattleArmorHandles
megamek.common.ClampMountMech
class ClampMountMech
Represtents the space on an standard Mech (i.e. one that is not an OmniMech) used by Battle Armor squads equiped with Magnetic Clamps to attach themselves for transport. This transporter gets assigned to all of a player's standard Mechs in the Exchange Phase if any Battle Armor squad equipped with a Magnetic Clamp is on that player's side.
megamek.server.Server#executePhase(int),
megamek.server.Server#checkForMagneticClamp()| Field Summary |
|---|
| Fields inherited from class megamek.common.BattleArmorHandles |
|---|
troopers |
| Constructor Summary | |
|---|---|
ClampMountMech()
Create a space to mount clamp-equipped troopers on a Mech. |
|
| Method Summary | |
|---|---|
boolean |
canLoad(Entity unit)
Determines if this object can accept the given unit. |
int |
getCargoMpReduction()
|
protected java.lang.String |
getVacancyString(boolean isLoaded)
Get the String to report the presence (or lack thereof) of
a loaded squad of Battle Armor troopers. |
| Methods inherited from class megamek.common.BattleArmorHandles |
|---|
getExteriorLocs, getExteriorUnitAt, getExternalUnits, getLoadedUnits, getUnusedString, isWeaponBlockedAt, load, unload |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClampMountMech()
| Method Detail |
|---|
protected java.lang.String getVacancyString(boolean isLoaded)
String to report the presence (or lack thereof) of
a loaded squad of Battle Armor troopers. Sub-classes are encouraged
to override this method.
getVacancyString in class BattleArmorHandlesisLoaded - - a boolean that indicates that troopers
are currently loaded (if the value is true) or
not (if the value is false).
String describing the occupancy state of this
transporter.public int getCargoMpReduction()
getCargoMpReduction in interface TransportergetCargoMpReduction in class BattleArmorHandlespublic boolean canLoad(Entity unit)
BattleArmorHandles
canLoad in interface TransportercanLoad in class BattleArmorHandlesunit - - the Entity to be loaded.
true if the unit can be loaded, false
otherwise.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||