Class PhysicalAttackAction

All Implemented Interfaces:
Serializable, AttackAction, EntityAction
Direct Known Subclasses:
BreakGrappleAttackAction, ClubAttackAction, GrappleAttackAction, JumpJetAttackAction, KickAttackAction, PunchAttackAction, TripAttackAction

public class PhysicalAttackAction extends AbstractAttackAction
See Also:
  • Constructor Details

    • PhysicalAttackAction

      public PhysicalAttackAction(int entityId, int targetId)
    • PhysicalAttackAction

      public PhysicalAttackAction(int entityId, int targetType, int targetId)
  • Method Details

    • toHitIsImpossible

      @Nullable protected static String toHitIsImpossible(Game game, @Nullable Entity ae, Targetable target)
      Common checking whether is it possible to physically attack the target
      Parameters:
      game - The current Game
      ae - the attacking Entity, which may be null
      target - the attack's target
      Returns:
      reason the attack is impossible, or null if it is possible
    • setCommonModifiers

      protected static void setCommonModifiers(ToHitData toHit, Game game, Entity ae, Targetable target)