|
|||||||||
| 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.DfaAttackAction
public class DfaAttackAction
| Constructor Summary | |
|---|---|
DfaAttackAction(int entityId,
int targetId,
Coords targetPos)
Creates new DfaAttackAction |
|
DfaAttackAction(int entityId,
int targetType,
int targetId,
Coords targetPos)
|
|
| Method Summary | |
|---|---|
static int |
getDamageFor(Entity entity,
boolean targetInfantry)
Damage that a mech does with a successful DFA. |
static int |
getDamageTakenBy(Entity entity)
Damage done to a mech after a successful DFA. |
static boolean |
hasTalons(Entity entity)
|
ToHitData |
toHit(IGame game)
|
static ToHitData |
toHit(IGame game,
int attackerId,
Targetable target,
Coords src)
To-hit number for a death from above attack, assuming that movement has been handled |
static ToHitData |
toHit(IGame game,
int attackerId,
Targetable target,
MovePath md)
Checks if a death from above attack can hit the target, including movement |
| 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 DfaAttackAction(int entityId,
int targetId,
Coords targetPos)
public DfaAttackAction(int entityId,
int targetType,
int targetId,
Coords targetPos)
| Method Detail |
|---|
public static int getDamageTakenBy(Entity entity)
public static int getDamageFor(Entity entity,
boolean targetInfantry)
public static ToHitData toHit(IGame game,
int attackerId,
Targetable target,
MovePath md)
public ToHitData toHit(IGame game)
public static ToHitData toHit(IGame game,
int attackerId,
Targetable target,
Coords src)
public static boolean hasTalons(Entity entity)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||