Package megamek.common.actions
Class DirectionalMountFacingAction
java.lang.Object
megamek.common.actions.AbstractEntityAction
megamek.common.actions.DirectionalMountFacingAction
- All Implemented Interfaces:
Serializable,EntityAction
Sets the facing of a weapon's Directional Torso Mount (BMM p.83). The facing is an offset (0-5) from the unit's
facing - 0 = forward, 3 = rear; the 2-point mount uses only those two, the 3-point quad turret may use any. Like a
torso twist this is declared during the firing phase and rides inside the attack packet, but unlike a torso twist the
chosen facing persists across rounds until deliberately changed again.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods 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, toSummaryString
-
Constructor Details
-
DirectionalMountFacingAction
public DirectionalMountFacingAction(int entityId, int weaponNumber, int facing) - Parameters:
entityId- the acting entity's idweaponNumber- the equipment number of the Directional Torso Mount weapon to refacefacing- the chosen facing offset (0-5) from the unit's facing
-
-
Method Details
-
getWeaponNumber
public int getWeaponNumber() -
getFacing
public int getFacing()
-