Package VASSAL.counters
Class Translate.MoveExecuter
java.lang.Object
VASSAL.counters.Translate.MoveExecuter
- All Implemented Interfaces:
Runnable
- Enclosing class:
- Translate
public static class Translate.MoveExecuter extends Object implements Runnable
Batches up all the movement commands resulting from a single KeyEvent
and executes them at once. Ensures that pieces that are moving won't
be merged with other moving pieces until they've been moved.
-
Constructor Summary
Constructors Constructor Description MoveExecuter() -
Method Summary
Modifier and Type Method Description voidadd(Map map, GamePiece piece, Point pos)voidaddKeyEventTarget(GamePiece piece)CommandgetAdditionalCommand()PointgetUpdatedPosition(GamePiece target)Return the updated position of a piece that has a move calculation recordedvoidrun()voidsetAdditionalCommand(Command c)voidsetKeyEvent(KeyStroke stroke)
-
Constructor Details
-
MoveExecuter
public MoveExecuter()
-
-
Method Details