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 classMovementReporter.HiddenMovementReporterA version of the MovementReporter for reporting the movement of Invisible pieces.static classMovementReporter.HiddenMoveSummarystatic classMovementReporter.MoveSummary -
Field Summary
Fields Modifier and Type Field Description protected FormattedStringformatprotected List<MovementReporter.MoveSummary>movesToMarkprotected List<MovementReporter.MoveSummary>movesToReport -
Constructor Summary
Constructors Constructor Description MovementReporter(Command moveCommand) -
Method Summary
Modifier and Type Method Description protected MovementReporter.MoveSummarycreateMoveSummary(AddPiece c)protected MovementReporter.MoveSummarycreateMoveSummary(MovePiece c)protected voidextractMoveCommands(Command c)protected StringgetLocation(Map map, Point p)CommandgetReportCommand()CommandmarkMoved(GamePiece p)CommandmarkMovedPieces()Mark all pieces with theMovementMarkabletraitprotected booleanshouldMarkMoved(MovementReporter.MoveSummary summary)protected booleanshouldReport(AddPiece addPiece)protected booleanshouldReport(MovePiece movePiece)
-
Field Details
-
format
-
movesToReport
-
movesToMark
-
-
Constructor Details
-
MovementReporter
-
-
Method Details
-
extractMoveCommands
-
createMoveSummary
-
createMoveSummary
-
markMovedPieces
Mark all pieces with theMovementMarkabletrait- Returns:
- the equivalent Command
-
markMoved
-
shouldMarkMoved
-
shouldReport
-
shouldReport
-
getReportCommand
-
getLocation
-