megamek.common.actions
Class AbstractEntityAction

java.lang.Object
  extended by megamek.common.actions.AbstractEntityAction
All Implemented Interfaces:
java.io.Serializable, EntityAction
Direct Known Subclasses:
AbstractAttackAction, ClearMinefieldAction, DodgeAction, FindClubAction, FiringModeChangeAction, FlipArmsAction, RepairWeaponMalfunctionAction, SpotAction, TorsoTwistAction, TriggerAPPodAction, TriggerBPodAction, UnjamAction, UnjamTurretAction, UnloadStrandedAction

public abstract class AbstractEntityAction
extends java.lang.Object
implements java.io.Serializable, EntityAction

Abstract superclass for any action that an entity takes.

See Also:
Serialized Form

Constructor Summary
AbstractEntityAction(int entityId)
           
 
Method Summary
 int getEntityId()
           
 void setEntityId(int entityId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractEntityAction

public AbstractEntityAction(int entityId)
Method Detail

getEntityId

public int getEntityId()
Specified by:
getEntityId in interface EntityAction

setEntityId

public void setEntityId(int entityId)
Specified by:
setEntityId in interface EntityAction