Class SBFMoveStep

java.lang.Object
megamek.common.strategicBattleSystems.SBFMoveStep
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
SurfaceSBFMoveStep

public abstract class SBFMoveStep extends Object implements Serializable
See Also:
  • Field Details

    • formationId

      protected final int formationId
    • startingPoint

      protected BoardLocation startingPoint
    • destination

      protected BoardLocation destination
    • mpUsed

      protected int mpUsed
    • isIllegal

      protected boolean isIllegal
  • Constructor Details

    • SBFMoveStep

      protected SBFMoveStep(int formationId)
  • Method Details

    • compile

      protected void compile(SBFGame game)
      Assembles and computes all data for this step. Tests if the start and end are on the same board and actually on that board and if the step distance is more than one. Override to provide more tests.
      Parameters:
      game - The game
    • copy

      public abstract SBFMoveStep copy()
      Returns:
      An exact copy of this move step.
    • getLastPosition

      public BoardLocation getLastPosition()
    • getMpUsed

      public int getMpUsed()
    • getDestination

      public BoardLocation getDestination()
    • isIllegal

      public boolean isIllegal()
    • getMovementDirection

      public int getMovementDirection()