Class ToxinAttackAction

All Implemented Interfaces:
Serializable, AttackAction, EntityAction

public class ToxinAttackAction extends AbstractAttackAction
Toxin Gas Attack (IO pg 79) A Conventional Infantry unit with the Gas Effuser (Toxin) cybernetic implant releases toxic gas to damage enemy conventional infantry in the same hex. On success, the target takes 0.25 points of damage per attacking trooper.
See Also:
  • Constructor Details

    • ToxinAttackAction

      public ToxinAttackAction(int entityId, int targetId)
    • ToxinAttackAction

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

    • getDamageFor

      public static int getDamageFor(Infantry attacker)
      Calculate the damage dealt by a toxin attack.
      Parameters:
      attacker - the attacking infantry unit
      Returns:
      the damage dealt (0.25 per trooper, rounded normally)
    • toHit

      public ToHitData toHit(Game game)
    • toHit

      public static ToHitData toHit(Game game, int attackerId, Targetable target)