megamek.common.actions
Class SearchlightAttackAction

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

public class SearchlightAttackAction
extends AbstractAttackAction

Used for aiming a searchlight at a target.

See Also:
Serialized Form

Constructor Summary
SearchlightAttackAction(int entityId, int targetId)
           
SearchlightAttackAction(int entityId, int targetType, int targetId)
           
 
Method Summary
 boolean isPossible(IGame game)
           
static boolean isPossible(IGame game, int attackerId, Targetable target, SearchlightAttackAction exempt)
           
 java.util.Vector<Report> resolveAction(IGame game)
          illuminate an entity and all entities that are between us and the hex
 boolean willIlluminate(IGame game, Entity who)
           
 
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

SearchlightAttackAction

public SearchlightAttackAction(int entityId,
                               int targetId)

SearchlightAttackAction

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

isPossible

public boolean isPossible(IGame game)

isPossible

public static boolean isPossible(IGame game,
                                 int attackerId,
                                 Targetable target,
                                 SearchlightAttackAction exempt)

resolveAction

public java.util.Vector<Report> resolveAction(IGame game)
illuminate an entity and all entities that are between us and the hex


willIlluminate

public boolean willIlluminate(IGame game,
                              Entity who)