|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmegamek.common.BattleArmorHandles
megamek.common.BattleArmorHandlesTank
public class BattleArmorHandlesTank
| Field Summary |
|---|
| Fields inherited from class megamek.common.BattleArmorHandles |
|---|
troopers |
| Constructor Summary | |
|---|---|
BattleArmorHandlesTank()
|
|
| Method Summary | |
|---|---|
protected int[] |
getExteriorLocs(boolean isRear)
Get the exterior locations that a loaded squad covers. |
boolean |
isWeaponBlockedAt(int loc,
boolean isRear)
Determine if transported units prevent a weapon in the given location from firing. |
| Methods inherited from class megamek.common.BattleArmorHandles |
|---|
canLoad, getCargoMpReduction, getExteriorUnitAt, getExternalUnits, getLoadedUnits, getUnusedString, getVacancyString, load, unload |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BattleArmorHandlesTank()
| Method Detail |
|---|
protected int[] getExteriorLocs(boolean isRear)
getExteriorLocs in class BattleArmorHandlesisRear - - a boolean value stating if the given
location is rear facing; if false, the
location is front facing.
int listing the exterior locations.
public final boolean isWeaponBlockedAt(int loc,
boolean isRear)
Sub-classes should override the getBlockedLocs method.
isWeaponBlockedAt in interface TransporterisWeaponBlockedAt in class BattleArmorHandlesloc - - the int location attempting to fire.isRear - - a boolean value stating if the given
location is rear facing; if false, the
location is front facing.
true if a transported unit is in the way,
false if the weapon can fire.megamek.common.BattleArmorHandles#getBlockedLocs(boolean)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||