|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmegamek.common.Bay
megamek.common.MechBay
public final class MechBay
Represtents a volume of space set aside for carrying mechs aboard dropships
| Field Summary |
|---|
| Fields inherited from class megamek.common.Bay |
|---|
currentSpace, doors, doorsNext, recoverySlots, totalSpace, troops |
| Constructor Summary | |
|---|---|
protected |
MechBay()
The default constructor is only for serialization. |
|
MechBay(int space,
int doors)
Create a space for the given tonnage of troops. |
| Method Summary | |
|---|---|
boolean |
canLoad(Entity unit)
Determines if this object can accept the given unit. |
java.lang.String |
getType()
|
java.lang.String |
getUnusedString()
Return a string that identifies the unused capacity of this transporter. |
| Methods inherited from class megamek.common.Bay |
|---|
destroyDoor, destroyDoorNext, getCargoMpReduction, getDoors, getDoorsNext, getDroppableUnits, getExteriorUnitAt, getExternalUnits, getLaunchableUnits, getLoadedUnits, isWeaponBlockedAt, load, resetDoors, setDoors, setDoorsNext, unload |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected MechBay()
public MechBay(int space,
int doors)
space - - The weight of troops (in tons) this space can carry.| Method Detail |
|---|
public boolean canLoad(Entity unit)
canLoad in interface TransportercanLoad in class Bayunit - - the Entity to be loaded.
true if the unit can be loaded,
false otherwise.public java.lang.String getUnusedString()
Bay
getUnusedString in interface TransportergetUnusedString in class BayString meant for a human.public java.lang.String getType()
getType in class Bay
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||