Class DfaAttackAction

All Implemented Interfaces:
Serializable, AttackAction, EntityAction

public class DfaAttackAction extends DisplacementAttackAction
Since:
March 16, 2002, 11:43 AM
See Also:
  • Constructor Details

    • DfaAttackAction

      public DfaAttackAction(int entityId, int targetId, Coords targetPos)
      Creates new DfaAttackAction
    • DfaAttackAction

      public DfaAttackAction(int entityId, int targetType, int targetId, Coords targetPos)
  • Method Details

    • getDamageTakenBy

      public static int getDamageTakenBy(Entity entity)
      Damage done to a mek after a successful DFA.
    • getDamageFor

      public static int getDamageFor(Entity entity, boolean targetInfantry)
      Damage that a mek does with a successful DFA.
    • toHit

      public static ToHitData toHit(Game game, int attackerId, Targetable target, MovePath md)
      Checks if a death from above attack can hit the target, including movement
      Parameters:
      game - The current Game
    • toHit

      public ToHitData toHit(Game game)
    • toHit

      public static ToHitData toHit(Game game, int attackerId, @Nullable Targetable target, Coords src)
      To-hit number for a death from above attack, assuming that movement has been handled
      Parameters:
      game - The current Game
    • hasTalons

      public static boolean hasTalons(Entity entity)
    • toSummaryString

      public String toSummaryString(Game game)
      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 in TurnDetailsOverlay.
      Parameters:
      game - The game object to get information from
      Returns:
      A short String describing the action
      See Also: