Package megamek.common.actions
Class DfaAttackAction
java.lang.Object
megamek.common.actions.AbstractEntityAction
megamek.common.actions.AbstractAttackAction
megamek.common.actions.DisplacementAttackAction
megamek.common.actions.DfaAttackAction
- All Implemented Interfaces:
Serializable
,AttackAction
,EntityAction
- Since:
- March 16, 2002, 11:43 AM
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDfaAttackAction
(int entityId, int targetType, int targetId, Coords targetPos) DfaAttackAction
(int entityId, int targetId, Coords targetPos) Creates new DfaAttackAction -
Method Summary
Modifier and TypeMethodDescriptionstatic int
getDamageFor
(Entity entity, boolean targetInfantry) Damage that a mek does with a successful DFA.static int
getDamageTakenBy
(Entity entity) Damage done to a mek after a successful DFA.static boolean
static ToHitData
toHit
(Game game, int attackerId, Targetable target, Coords src) To-hit number for a death from above attack, assuming that movement has been handledstatic ToHitData
toHit
(Game game, int attackerId, Targetable target, MovePath md) Checks if a death from above attack can hit the target, including movementtoSummaryString
(Game game) Returns a short one-line description of the action that is used in the UI, e.g.Methods inherited from class megamek.common.actions.DisplacementAttackAction
getTargetPos, setTargetPos
Methods inherited from class megamek.common.actions.AbstractAttackAction
getEntity, getEntity, getTarget, getTargetId, getTargetType, nightModifiers, setTargetId, setTargetType, toAccessibilityDescription, toString
Methods inherited from class megamek.common.actions.AbstractEntityAction
getEntityId
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface megamek.common.actions.EntityAction
getEntityId
-
Constructor Details
-
DfaAttackAction
Creates new DfaAttackAction -
DfaAttackAction
-
-
Method Details
-
getDamageTakenBy
Damage done to a mek after a successful DFA. -
getDamageFor
Damage that a mek does with a successful DFA. -
toHit
Checks if a death from above attack can hit the target, including movement- Parameters:
game
- The currentGame
-
toHit
-
toHit
To-hit number for a death from above attack, assuming that movement has been handled- Parameters:
game
- The currentGame
-
hasTalons
-
toSummaryString
Description copied from interface:EntityAction
Returns a short one-line description of the action that is used in the UI, e.g. on attack arrows in the BoardView and in the action summary inTurnDetailsOverlay
.- Parameters:
game
- The game object to get information from- Returns:
- A short String describing the action
- See Also:
-