Package VASSAL.build.module.map
Class MovementReporter
java.lang.Object
VASSAL.build.module.map.MovementReporter
- Direct Known Subclasses:
MovementReporter.HiddenMovementReporter
Builds an auto-report message for a collection of Move Commands
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA version of the MovementReporter for reporting the movement of Invisible pieces.static classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected FormattedStringprotected List<MovementReporter.MoveSummary>protected List<MovementReporter.MoveSummary> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected MovementReporter.MoveSummaryprotected MovementReporter.MoveSummaryprotected voidprotected StringgetLocation(Map map, Point p)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
-