megamek.common.actions
Class DisplacementAttackAction

java.lang.Object
  extended by megamek.common.actions.AbstractEntityAction
      extended by megamek.common.actions.AbstractAttackAction
          extended by megamek.common.actions.DisplacementAttackAction
All Implemented Interfaces:
java.io.Serializable, AttackAction, EntityAction
Direct Known Subclasses:
ChargeAttackAction, DfaAttackAction, PushAttackAction

public class DisplacementAttackAction
extends AbstractAttackAction

Version:
Author:
Ben
See Also:
Serialized Form

Constructor Summary
DisplacementAttackAction(int entityId, int targetId, Coords targetPos)
          Creates new DisplacementAttackAction
DisplacementAttackAction(int entityId, int targetType, int targetId, Coords targetPos)
           
 
Method Summary
 Coords getTargetPos()
           
 void setTargetPos(Coords targetPos)
           
 
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

DisplacementAttackAction

public DisplacementAttackAction(int entityId,
                                int targetId,
                                Coords targetPos)
Creates new DisplacementAttackAction


DisplacementAttackAction

public DisplacementAttackAction(int entityId,
                                int targetType,
                                int targetId,
                                Coords targetPos)
Method Detail

getTargetPos

public Coords getTargetPos()

setTargetPos

public void setTargetPos(Coords targetPos)