|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmegamek.common.actions.AbstractEntityAction
megamek.common.actions.AbstractAttackAction
megamek.common.actions.SearchlightAttackAction
public class SearchlightAttackAction
Used for aiming a searchlight at a target.
| 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 |
|---|
public SearchlightAttackAction(int entityId,
int targetId)
public SearchlightAttackAction(int entityId,
int targetType,
int targetId)
| Method Detail |
|---|
public boolean isPossible(IGame game)
public static boolean isPossible(IGame game,
int attackerId,
Targetable target,
SearchlightAttackAction exempt)
public java.util.Vector<Report> resolveAction(IGame game)
public boolean willIlluminate(IGame game,
Entity who)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||