Class DirectionalMountFacingAction

java.lang.Object
megamek.common.actions.AbstractEntityAction
megamek.common.actions.DirectionalMountFacingAction
All Implemented Interfaces:
Serializable, EntityAction

public class DirectionalMountFacingAction extends AbstractEntityAction
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 Details

    • DirectionalMountFacingAction

      public DirectionalMountFacingAction(int entityId, int weaponNumber, int facing)
      Parameters:
      entityId - the acting entity's id
      weaponNumber - the equipment number of the Directional Torso Mount weapon to reface
      facing - the chosen facing offset (0-5) from the unit's facing
  • Method Details

    • getWeaponNumber

      public int getWeaponNumber()
    • getFacing

      public int getFacing()