Package megamek.common.actions
Class ReinforceInfantryCombatAction
java.lang.Object
megamek.common.actions.AbstractEntityAction
megamek.common.actions.InfantryCombatAction
megamek.common.actions.ReinforceInfantryCombatAction
- All Implemented Interfaces:
Serializable,EntityAction
Action to REINFORCE existing infantry vs. infantry combat in a building.
Only valid when combat ALREADY exists in the target building.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionReinforceInfantryCombatAction(int entityId, int targetId) Creates a new reinforce infantry combat action. -
Method Summary
Modifier and TypeMethodDescriptiontoSummaryString(Game game) Returns a short one-line description of the action that is used in the UI, e.g.Methods inherited from class megamek.common.actions.InfantryCombatAction
getTargetId, isWithdrawing, setWithdrawingMethods inherited from class megamek.common.actions.AbstractEntityAction
getEntityId, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface megamek.common.actions.EntityAction
toAccessibilityDescription
-
Constructor Details
-
ReinforceInfantryCombatAction
public ReinforceInfantryCombatAction(int entityId, int targetId) Creates a new reinforce infantry combat action.- Parameters:
entityId- the reinforcing infantry entity IDtargetId- the target entity ID (AbstractBuildingEntity)
-
-
Method Details
-
toSummaryString
Description copied from interface:EntityActionReturns a short one-line description of the action that is used in the UI, e.g. on attack arrows in the BoardView and in the action summary inTurnDetailsOverlay.- Specified by:
toSummaryStringin interfaceEntityAction- Overrides:
toSummaryStringin classInfantryCombatAction- Parameters:
game- The game object to get information from- Returns:
- A short String describing the action
- See Also:
-