megamek.common.actions
Class TripAttackAction

java.lang.Object
  extended by megamek.common.actions.AbstractEntityAction
      extended by megamek.common.actions.AbstractAttackAction
          extended by megamek.common.actions.PhysicalAttackAction
              extended by megamek.common.actions.TripAttackAction
All Implemented Interfaces:
java.io.Serializable, AttackAction, EntityAction

public class TripAttackAction
extends PhysicalAttackAction

The attacker kicks the target.

See Also:
Serialized Form

Constructor Summary
TripAttackAction(int entityId, int targetId)
           
TripAttackAction(int entityId, int targetType, int targetId)
           
 
Method Summary
 ToHitData toHit(IGame game)
           
static ToHitData toHit(IGame game, int attackerId, Targetable target)
          To-hit number for the specified leg to kick
 
Methods inherited from class megamek.common.actions.PhysicalAttackAction
setCommonModifiers, toHitIsImpossible
 
Methods inherited from class megamek.common.actions.AbstractAttackAction
getEntity, getTarget, getTargetId, getTargetType, nightModifiers, setTargetId, setTargetType
 
Methods inherited from class megamek.common.actions.AbstractEntityAction
getEntityId, setEntityId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface megamek.common.actions.EntityAction
getEntityId, setEntityId
 

Constructor Detail

TripAttackAction

public TripAttackAction(int entityId,
                        int targetId)

TripAttackAction

public TripAttackAction(int entityId,
                        int targetType,
                        int targetId)
Method Detail

toHit

public ToHitData toHit(IGame game)

toHit

public static ToHitData toHit(IGame game,
                              int attackerId,
                              Targetable target)
To-hit number for the specified leg to kick