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 Details

    • MoveExecuter

      public MoveExecuter()
  • Method Details

    • run

      public void run()
      Specified by:
      run in interface Runnable
    • add

      public void add(Map map, GamePiece piece, Point pos)
    • addKeyEventTarget

      public void addKeyEventTarget(GamePiece piece)
    • setKeyEvent

      public void setKeyEvent(KeyStroke stroke)
    • setAdditionalCommand

      public void setAdditionalCommand(Command c)
    • getAdditionalCommand

      public Command getAdditionalCommand()
    • getUpdatedPosition

      public Point getUpdatedPosition(GamePiece target)
      Return the updated position of a piece that has a move calculation recorded
      Parameters:
      target - piece to check
      Returns:
      updated position