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 void
add(Map map, GamePiece piece, Point pos)
void
addKeyEventTarget(GamePiece piece)
Command
getAdditionalCommand()
Point
getUpdatedPosition(GamePiece target)
Return the updated position of a piece that has a move calculation recordedvoid
run()
void
setAdditionalCommand(Command c)
void
setKeyEvent(KeyStroke stroke)
-
Constructor Details
-
MoveExecuter
public MoveExecuter()
-
-
Method Details