Package VASSAL.build.module.map
Class MovementReporter
java.lang.Object
VASSAL.build.module.map.MovementReporter
- Direct Known Subclasses:
MovementReporter.HiddenMovementReporter
public class MovementReporter extends Object
Builds an auto-report message for a collection of Move Commands
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MovementReporter.HiddenMovementReporter
A version of the MovementReporter for reporting the movement of Invisible pieces.static class
MovementReporter.HiddenMoveSummary
static class
MovementReporter.MoveSummary
-
Field Summary
Fields Modifier and Type Field Description protected FormattedString
format
protected List<MovementReporter.MoveSummary>
movesToMark
protected List<MovementReporter.MoveSummary>
movesToReport
-
Constructor Summary
Constructors Constructor Description MovementReporter(Command moveCommand)
-
Method Summary
Modifier and Type Method Description protected MovementReporter.MoveSummary
createMoveSummary(AddPiece c)
protected MovementReporter.MoveSummary
createMoveSummary(MovePiece c)
protected void
extractMoveCommands(Command c)
protected String
getLocation(Map map, Point p)
Command
getReportCommand()
Command
markMoved(GamePiece p)
Command
markMovedPieces()
Mark all pieces with theMovementMarkable
traitprotected boolean
shouldMarkMoved(MovementReporter.MoveSummary summary)
protected boolean
shouldReport(AddPiece addPiece)
protected boolean
shouldReport(MovePiece movePiece)
-
Field Details
-
format
-
movesToReport
-
movesToMark
-
-
Constructor Details
-
MovementReporter
-
-
Method Details
-
extractMoveCommands
-
createMoveSummary
-
createMoveSummary
-
markMovedPieces
Mark all pieces with theMovementMarkable
trait- Returns:
- the equivalent Command
-
markMoved
-
shouldMarkMoved
-
shouldReport
-
shouldReport
-
getReportCommand
-
getLocation
-