megamek.common.actions
Class ArtilleryAttackAction

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

public class ArtilleryAttackAction
extends WeaponAttackAction
implements java.io.Serializable

ArtilleryAttackAction Holds the data needed for an artillery attack in flight.

See Also:
Serialized Form

Field Summary
protected  int playerId
           
 int turnsTilHit
           
 
Constructor Summary
ArtilleryAttackAction(int entityId, int targetType, int targetId, int weaponId, IGame game)
           
 
Method Summary
 Coords getCoords()
           
 int getPlayerId()
           
 java.util.Vector<java.lang.Integer> getSpotterIds()
           
 void setCoords(Coords coords)
           
 void setSpotterIds(java.util.Vector<java.lang.Integer> spotterIds)
           
 
Methods inherited from class megamek.common.actions.WeaponAttackAction
addCounterEquipment, getAimedLocation, getAimingMode, getAltitudeLoss, getAmmoId, getBombPayload, getCounterEquipment, getOtherAttackInfo, getSwarmMissiles, getWeaponId, isAirToAir, isAirToGround, isGroundToAir, isNemesisConfused, isSwarmingMissiles, setAimedLocation, setAimingMode, setAmmoId, setBombPayload, setNemesisConfused, setOldTargetId, setOtherAttackInfo, setSwarmingMissiles, setSwarmMissiles, setWeaponId, toHit, toHit, toHit
 
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
 

Field Detail

turnsTilHit

public int turnsTilHit

playerId

protected int playerId
Constructor Detail

ArtilleryAttackAction

public ArtilleryAttackAction(int entityId,
                             int targetType,
                             int targetId,
                             int weaponId,
                             IGame game)
Method Detail

getSpotterIds

public java.util.Vector<java.lang.Integer> getSpotterIds()

getPlayerId

public int getPlayerId()

setSpotterIds

public void setSpotterIds(java.util.Vector<java.lang.Integer> spotterIds)

setCoords

public void setCoords(Coords coords)

getCoords

public Coords getCoords()