Package megamek.common.actions
Class PhysicalAttackAction
java.lang.Object
megamek.common.actions.AbstractEntityAction
megamek.common.actions.AbstractAttackAction
megamek.common.actions.PhysicalAttackAction
- All Implemented Interfaces:
Serializable
,AttackAction
,EntityAction
- Direct Known Subclasses:
BreakGrappleAttackAction
,ClubAttackAction
,GrappleAttackAction
,JumpJetAttackAction
,KickAttackAction
,PunchAttackAction
,TripAttackAction
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPhysicalAttackAction
(int entityId, int targetId) PhysicalAttackAction
(int entityId, int targetType, int targetId) -
Method Summary
Modifier and TypeMethodDescriptionprotected static void
setCommonModifiers
(ToHitData toHit, Game game, Entity ae, Targetable target) protected static String
toHitIsImpossible
(Game game, Entity ae, Targetable target) Common checking whether is it possible to physically attack the targetMethods inherited from class megamek.common.actions.AbstractAttackAction
getEntity, getEntity, getTarget, getTargetId, getTargetType, nightModifiers, setTargetId, setTargetType, toAccessibilityDescription, toString
Methods inherited from class megamek.common.actions.AbstractEntityAction
getEntityId
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface megamek.common.actions.EntityAction
getEntityId, toSummaryString
-
Constructor Details
-
PhysicalAttackAction
public PhysicalAttackAction(int entityId, int targetId) -
PhysicalAttackAction
public PhysicalAttackAction(int entityId, int targetType, int targetId)
-
-
Method Details