|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmegamek.common.actions.AbstractEntityAction
megamek.common.actions.AbstractAttackAction
megamek.common.actions.DisplacementAttackAction
megamek.common.actions.PushAttackAction
public class PushAttackAction
The attacker pushes the target.
| Constructor Summary | |
|---|---|
PushAttackAction(int entityId,
int targetId,
Coords targetPos)
|
|
PushAttackAction(int entityId,
int targetType,
int targetId,
Coords targetPos)
|
|
| Method Summary | |
|---|---|
ToHitData |
toHit(IGame game)
|
static ToHitData |
toHit(IGame game,
int attackerId,
Targetable target)
To-hit number for the mech to push another mech |
protected static java.lang.String |
toHitIsImpossible(IGame game,
Entity ae,
Targetable target)
pushes are impossible when physical attacks are impossible, or a retractable blade is extended |
| Methods inherited from class megamek.common.actions.DisplacementAttackAction |
|---|
getTargetPos, setTargetPos |
| Methods inherited from class megamek.common.actions.AbstractAttackAction |
|---|
getEntity, getTarget, getTargetId, getTargetType, nightModifiers, setTargetId, setTargetType |
| Methods inherited from class megamek.common.actions.AbstractEntityAction |
|---|
getEntityId, setEntityId |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface megamek.common.actions.EntityAction |
|---|
getEntityId, setEntityId |
| Constructor Detail |
|---|
public PushAttackAction(int entityId,
int targetId,
Coords targetPos)
public PushAttackAction(int entityId,
int targetType,
int targetId,
Coords targetPos)
| Method Detail |
|---|
public ToHitData toHit(IGame game)
protected static java.lang.String toHitIsImpossible(IGame game,
Entity ae,
Targetable target)
game - ae - target -
public static ToHitData toHit(IGame game,
int attackerId,
Targetable target)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||