Class SurfaceSBFMoveStep
java.lang.Object
megamek.common.strategicBattleSystems.SBFMoveStep
megamek.common.strategicBattleSystems.SurfaceSBFMoveStep
- All Implemented Interfaces:
Serializable
This is an SBF move step that happens on the surface of a hex, i.e. on the ground or, if the destination has water,
on the water surface. This means that the elevation at start and end is considered to be 0.
- See Also:
-
Field Summary
Fields inherited from class megamek.common.strategicBattleSystems.SBFMoveStep
destination, formationId, isIllegal, mpUsed, startingPoint -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidAssembles and computes all data for this step.copy()static SBFMoveStepcreateSurfaceMoveStep(SBFGame game, int formationId, BoardLocation startingPoint, int direction) Deprecated, for removal: This API element is subject to removal in a future version.static SBFMoveStepcreateSurfaceMoveStep(SBFGame game, int formationId, BoardLocation startingPoint, BoardLocation destination) inttoString()Methods inherited from class megamek.common.strategicBattleSystems.SBFMoveStep
getDestination, getLastPosition, getMpUsed, isIllegal
-
Constructor Details
-
SurfaceSBFMoveStep
protected SurfaceSBFMoveStep(int formationId)
-
-
Method Details
-
createSurfaceMoveStep
public static SBFMoveStep createSurfaceMoveStep(SBFGame game, int formationId, BoardLocation startingPoint, BoardLocation destination) -
createSurfaceMoveStep
@Deprecated(since="0.51.0", forRemoval=true) public static SBFMoveStep createSurfaceMoveStep(SBFGame game, int formationId, BoardLocation startingPoint, int direction) Deprecated, for removal: This API element is subject to removal in a future version. -
compile
Description copied from class:SBFMoveStepAssembles 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.- Overrides:
compilein classSBFMoveStep- Parameters:
game- The game
-
copy
- Specified by:
copyin classSBFMoveStep- Returns:
- An exact copy of this move step.
-
toString
-
getMovementDirection
public int getMovementDirection()- Overrides:
getMovementDirectionin classSBFMoveStep
-