Class SBFMoveStep
java.lang.Object
megamek.common.strategicBattleSystems.SBFMoveStep
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
SurfaceSBFMoveStep
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BoardLocationprotected final intprotected booleanprotected intprotected BoardLocation -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidAssembles and computes all data for this step.abstract SBFMoveStepcopy()intintboolean
-
Field Details
-
formationId
protected final int formationId -
startingPoint
-
destination
-
mpUsed
protected int mpUsed -
isIllegal
protected boolean isIllegal
-
-
Constructor Details
-
SBFMoveStep
protected SBFMoveStep(int formationId)
-
-
Method Details
-
compile
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
- Returns:
- An exact copy of this move step.
-
getLastPosition
-
getMpUsed
public int getMpUsed() -
getDestination
-
isIllegal
public boolean isIllegal() -
getMovementDirection
public int getMovementDirection()
-