|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmegamek.common.GameTurn
megamek.common.GameTurn.SpecificEntityTurn
megamek.common.GameTurn.TriggerBPodTurn
public static class GameTurn.TriggerBPodTurn
A type of game turn that allows only one specific entity to trigger their Anti-Battle Armor pods against attacking infantry/BA.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class megamek.common.GameTurn |
|---|
GameTurn.CounterGrappleTurn, GameTurn.EntityClassTurn, GameTurn.SpecificEntityTurn, GameTurn.TriggerAPPodTurn, GameTurn.TriggerBPodTurn, GameTurn.UnitNumberTurn, GameTurn.UnloadStrandedTurn |
| Field Summary |
|---|
| Fields inherited from class megamek.common.GameTurn |
|---|
CLASS_AERO, CLASS_DROPSHIP, CLASS_GUN_EMPLACEMENT, CLASS_INFANTRY, CLASS_JUMPSHIP, CLASS_MECH, CLASS_PROTOMECH, CLASS_SMALL_CRAFT, CLASS_SPACE_STATION, CLASS_TANK, CLASS_WARSHIP |
| Constructor Summary | |
|---|---|
GameTurn.TriggerBPodTurn(int playerId,
int entityId,
java.lang.String attackType)
|
|
| Method Summary | |
|---|---|
java.lang.String |
getAttackType()
|
boolean |
isValidEntity(Entity entity,
IGame game)
Returns true if the entity matches this game turn, even if the entity has declared an action. |
| Methods inherited from class megamek.common.GameTurn.SpecificEntityTurn |
|---|
getEntityNum, setEntityNum |
| Methods inherited from class megamek.common.GameTurn |
|---|
getClassCode, getPlayerNum, isValid, isValid, setPlayerNum, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GameTurn.TriggerBPodTurn(int playerId,
int entityId,
java.lang.String attackType)
| Method Detail |
|---|
public java.lang.String getAttackType()
public boolean isValidEntity(Entity entity,
IGame game)
isValidEntity in class GameTurn.SpecificEntityTurnentity - the Entity that may take this turn.game - the IGame this turn belongs to.
true if the specified entity can take this turn.
false if the entity is not valid for this turn.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||