Package megamek.common.actions
Class ToxinAttackAction
java.lang.Object
megamek.common.actions.AbstractEntityAction
megamek.common.actions.AbstractAttackAction
megamek.common.actions.ToxinAttackAction
- All Implemented Interfaces:
Serializable,AttackAction,EntityAction
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 Summary
ConstructorsConstructorDescriptionToxinAttackAction(int entityId, int targetId) ToxinAttackAction(int entityId, int targetType, int targetId) -
Method Summary
Modifier and TypeMethodDescriptionstatic intgetDamageFor(Infantry attacker) Calculate the damage dealt by a toxin attack.static ToHitDatatoHit(Game game, int attackerId, Targetable target) Methods inherited from class megamek.common.actions.AbstractAttackAction
getEntity, getEntity, getTarget, getTargetId, getTargetType, nightModifiers, setTargetId, setTargetType, toAccessibilityDescription, toStringMethods inherited from class megamek.common.actions.AbstractEntityAction
getEntityIdMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface megamek.common.actions.EntityAction
getEntityId, toSummaryString
-
Constructor Details
-
ToxinAttackAction
public ToxinAttackAction(int entityId, int targetId) -
ToxinAttackAction
public ToxinAttackAction(int entityId, int targetType, int targetId)
-
-
Method Details
-
getDamageFor
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
-
toHit
-