|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmegamek.common.Bay
megamek.common.ASFBay
public final class ASFBay
Represtents a volume of space set aside for carrying ASFs and Small Craft aboard DropShips
| Field Summary |
|---|
| Fields inherited from class megamek.common.Bay |
|---|
currentSpace, doors, doorsNext, recoverySlots, totalSpace, troops |
| Constructor Summary | |
|---|---|
protected |
ASFBay()
The default constructor is only for serialization. |
|
ASFBay(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. |
void |
closeSlot()
|
void |
destroyDoor()
|
void |
destroyDoorNext()
|
int |
getDoors()
|
int |
getRecoverySlots()
|
java.lang.String |
getType()
|
java.lang.String |
getUnusedString()
Return a string that identifies the unused capacity of this transporter. |
java.util.Vector<java.lang.Integer> |
initializeRecoverySlots()
|
void |
load(Entity unit)
Load the given unit. |
void |
recover(Entity unit)
|
void |
updateSlots()
|
| Methods inherited from class megamek.common.Bay |
|---|
getCargoMpReduction, getDoorsNext, getDroppableUnits, getExteriorUnitAt, getExternalUnits, getLaunchableUnits, getLoadedUnits, isWeaponBlockedAt, 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 ASFBay()
public ASFBay(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 void load(Entity unit)
throws java.lang.IllegalArgumentException
load in interface Transporterload in class Bayunit - - the Entity to be loaded.
- - If the unit can't be loaded, an
IllegalArgumentException exception will be thrown.
java.lang.IllegalArgumentException
public void recover(Entity unit)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionpublic java.lang.String getUnusedString()
Bay
getUnusedString in interface TransportergetUnusedString in class BayString meant for a human.public java.lang.String getType()
getType in class Baypublic void updateSlots()
public java.util.Vector<java.lang.Integer> initializeRecoverySlots()
public int getRecoverySlots()
public void closeSlot()
public void destroyDoorNext()
destroyDoorNext in class Baypublic void destroyDoor()
destroyDoor in class Baypublic int getDoors()
getDoors in class Bay
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||