Uses of Class
VASSAL.command.Command
| Package | Description |
|---|---|
| VASSAL.build |
Provides classes for building Java instances automatically from XML
files.
|
| VASSAL.build.module |
Contains classes that may be added to a
GameModule. |
| VASSAL.build.module.documentation |
Contains classes that may be added to a
Documentation. |
| VASSAL.build.module.map |
Contains classes that may be added to a
Map. |
| VASSAL.build.module.map.boardPicker |
Contains classes that may be added to a
BoardPicker. |
| VASSAL.build.module.map.boardPicker.board.mapgrid |
Contains classes that may be added to a
MapGrid. |
| VASSAL.build.module.noteswindow |
Contains classes that may be added to a
NotesWindow. |
| VASSAL.build.module.properties | |
| VASSAL.build.module.turn | |
| VASSAL.chat |
Contains classes for specifying a VASSAL server implementation that follows a chat-room paradigm.
|
| VASSAL.chat.jabber | |
| VASSAL.chat.node | |
| VASSAL.chat.peer2peer | |
| VASSAL.command |
Provides classes that implement the "Command" design pattern.
|
| VASSAL.counters |
Provides classes that define game pieces.
|
| VASSAL.launch | |
| VASSAL.property |
-
Uses of Command in VASSAL.build
Fields in VASSAL.build declared as Command Modifier and Type Field Description protected CommandGameModule. pausedCommandsMethods in VASSAL.build that return Command Modifier and Type Method Description CommandGameModule. decode(String command)Uses the registeredCommandEncoders to decode a String into aCommand.CommandGameModule. resumeLogging()Restart logging and return any outstanding commandsMethods in VASSAL.build with parameters of type Command Modifier and Type Method Description StringGameModule. encode(Command c)Uses the registeredCommandEncoders to encode aCommandinto a String objectvoidGameModule. sendAndLog(Command c)Encode theCommand, send it to the server and write it to a logfile (if any is open) -
Uses of Command in VASSAL.build.module
Subclasses of Command in VASSAL.build.module Modifier and Type Class Description static classBasicLogger.LogCommandstatic classChatter.DisplayTextThis is aCommandobject that, when executed, displays a text message in the Chatter's text areastatic classEventLog.StoreEventsstatic classGameState.SetupCommandstatic classModuleExtension.RegCmdA command that verifies that a certain extension has been loadedstatic classModulePlugin.RegCmdstatic classNewGameIndicator.MarkGameNotNewprotected classNotesWindow.SetPublicNoteprotected classNotesWindow.SetScenarioNotestatic classObscurableOptions.SetAllowedstatic classPlayerRoster.Addstatic classSpecialDiceButton.ShowResultsCommand for displaying the results of a roll of the diceFields in VASSAL.build.module declared as Command Modifier and Type Field Description protected CommandBasicLogger. beginningStateprotected CommandBasicLogger.LogCommand. loggedFields in VASSAL.build.module with type parameters of type Command Modifier and Type Field Description protected List<Command>BasicLogger.LogCommand. logInputprotected List<Command>BasicLogger. logInputprotected List<Command>BasicLogger. logOutputMethods in VASSAL.build.module that return Command Modifier and Type Method Description CommandMap. apply(PieceVisitorDispatcher commandFactory)Apply the providedPieceVisitorDispatcherto all pieces on this map.protected CommandBasicLogger.LogCommand. assembleCommand()CommandBasicCommandEncoder. decode(String command)CommandBasicLogger. decode(String command)CommandChatter. decode(String s)CommandEventLog. decode(String s)CommandExtensionsLoader. decode(String command)CommandGameState. decode(String theCommand)A GameState recognizes instances ofGameState.SetupCommandCommandInternetDiceButton. decode(String command)CommandNewGameIndicator. decode(String command)CommandNotesWindow. decode(String command)CommandObscurableOptions. decode(String command)CommandPlayerRoster. decode(String command)CommandPluginsLoader. decode(String command)CommandSpecialDiceButton. decode(String s)CommandGameState. decodeSavedGame(File saveFile)Read a saved game and translate it into a Command.CommandGameState. decodeSavedGame(InputStream in)protected CommandInventory.HotKeySender. getCommand(Inventory.CounterNode node, KeyStroke stroke)CommandBasicLogger.LogCommand. getLoggedCommand()CommandBasicLogger. getRestoreCommand()CommandEventLog. getRestoreCommand()CommandGameComponent. getRestoreCommand()When saving a game, each GameComponent should return aCommandthat, when executed, restores the GameComponent to its state when the game was saved If this component has no persistent state, return nullCommandGameRefresher. getRestoreCommand()CommandGameState. getRestoreCommand()Return aCommandthat, when executed, will restore the game to its current state.CommandInternetDiceButton. getRestoreCommand()CommandInventory. getRestoreCommand()CommandMap. getRestoreCommand()CommandModuleExtension. getRestoreCommand()CommandModulePlugin. getRestoreCommand()CommandNewGameIndicator. getRestoreCommand()CommandNotesWindow. getRestoreCommand()CommandObscurableOptions. getRestoreCommand()CommandPlayerRoster. getRestoreCommand()CommandPredefinedSetup. getRestoreCommand()CommandStartupGlobalKeyCommand. getRestoreCommand()CommandToolbarMenu. getRestoreCommand()CommandGameState. getRestorePiecesCommand()protected CommandWizardSupport.SavedGameLoader. loadSavedGame()protected CommandWizardSupport.TutorialLoader. loadSavedGame()protected CommandBasicLogger.LogCommand. myUndoCommand()CommandChatter.DisplayText. myUndoCommand()CommandEventLog.StoreEvents. myUndoCommand()protected CommandGameState.SetupCommand. myUndoCommand()protected CommandInventory. myUndoCommand()protected CommandModuleExtension.RegCmd. myUndoCommand()protected CommandNewGameIndicator.MarkGameNotNew. myUndoCommand()protected CommandNotesWindow.SetPublicNote. myUndoCommand()protected CommandNotesWindow.SetScenarioNote. myUndoCommand()protected CommandObscurableOptions.SetAllowed. myUndoCommand()protected CommandPlayerRoster.Add. myUndoCommand()protected CommandSpecialDiceButton.ShowResults. myUndoCommand()CommandMap. placeAt(GamePiece piece, Point pt)Place a piece at the destination point.CommandMap. placeOrMerge(GamePiece p, Point pt)Move a piece to the destination point.protected CommandInventory. sendHotKeyToPieces(KeyStroke keyStroke)Methods in VASSAL.build.module with parameters of type Command Modifier and Type Method Description protected voidDoActionButton. doHotKey(Command c, NamedKeyStroke key)StringBasicCommandEncoder. encode(Command c)StringBasicLogger. encode(Command c)Recognizes a logging command.StringChatter. encode(Command c)StringEventLog. encode(Command c)StringExtensionsLoader. encode(Command c)StringGameState. encode(Command c)A GameState recognizes instances ofGameState.SetupCommandStringInternetDiceButton. encode(Command c)StringNewGameIndicator. encode(Command c)StringNotesWindow. encode(Command c)StringObscurableOptions. encode(Command c)StringPlayerRoster. encode(Command c)StringPluginsLoader. encode(Command c)StringSpecialDiceButton. encode(Command c)protected voidDoActionButton. executeActions(Command command)Execute the set of actions that make up this button and return the set of Commands generated.voidBasicLogger. log(Command c)voidServerConnection. sendToOthers(Command c)Send a command to other players on the serverConstructors in VASSAL.build.module with parameters of type Command Constructor Description LogCommand(Command c, List<Command> logInput, Action stepAction)Constructor parameters in VASSAL.build.module with type arguments of type Command Constructor Description LogCommand(Command c, List<Command> logInput, Action stepAction) -
Uses of Command in VASSAL.build.module.documentation
Methods in VASSAL.build.module.documentation that return Command Modifier and Type Method Description CommandTutorial. getTutorialCommand()Get the Command representing this tutorial logfile. -
Uses of Command in VASSAL.build.module.map
Subclasses of Command in VASSAL.build.module.map Modifier and Type Class Description static classBoardPicker.SetBoardsstatic classLOS_Thread.LOSCommandMethods in VASSAL.build.module.map that return Command Modifier and Type Method Description CommandDrawPile. addToContents(GamePiece p)CommandDeckGlobalKeyCommand.DeckGlobalCommand. apply(Deck d, PieceFilter filter)protected CommandPieceMover. applyKeyAfterMove(List<GamePiece> pieces, KeyStroke key)CommandBoardPicker. decode(String command)CommandLOS_Thread. decode(String command)CommandMovementReporter. getReportCommand()CommandBoardPicker. getRestoreCommand()The restore command of a BoardPicker, when executed, sets the boards of itsMaptoBoardPicker.getSelectedBoards()CommandGlobalMap. getRestoreCommand()CommandHidePiecesButton. getRestoreCommand()CommandHighlightLastMoved. getRestoreCommand()CommandMapShader. getRestoreCommand()CommandPieceMover. getRestoreCommand()CommandSetupStack. getRestoreCommand()CommandZoomer. getRestoreCommand()CommandMovementReporter. markMoved(GamePiece p)CommandPieceMover. markMoved(GamePiece p, boolean hasMoved)CommandMovementReporter. markMovedPieces()Mark all pieces with theMovementMarkabletraitCommandHandMetrics. merge(GamePiece fixed, GamePiece moving)CommandStackMetrics. merge(GamePiece fixed, GamePiece moving)Place a GamePiece on top of another GamePiece Create/remove stacks as necessary, even if stacking is disabled for this instanceprotected CommandPieceMover. movedPiece(GamePiece p, Point loc)Invoked just before a piece is movedCommandPieceMover. movePieces(Map map, Point p)Moves pieces in DragBuffer to point p by generating a Command for each element in DragBufferprotected CommandBoardPicker.SetBoards. myUndoCommand()protected CommandLOS_Thread.LOSCommand. myUndoCommand()CommandStackMetrics. placeOrMerge(GamePiece fixed, GamePiece moving)Merge the two pieces if stacking is enabled.CommandPieceRecenterer. recenter(Map map)Returns a Command that moves all pieces so that their centroid is centered on the map.protected CommandPieceMover. setOldLocations(GamePiece p)Methods in VASSAL.build.module.map with parameters of type Command Modifier and Type Method Description protected voidPieceMover. applyKeyAfterMove(List<GamePiece> pieces, Command comm, KeyStroke key)Deprecated, for removal: This API element is subject to removal in a future version.protected MovementReporterPieceMover. createMovementReporter(Command c)StringBoardPicker. encode(Command c)StringLOS_Thread. encode(Command c)protected voidMovementReporter. extractMoveCommands(Command c)Constructors in VASSAL.build.module.map with parameters of type Command Constructor Description HiddenMovementReporter(Command moveCommand)MovementReporter(Command moveCommand) -
Uses of Command in VASSAL.build.module.map.boardPicker
Methods in VASSAL.build.module.map.boardPicker that return Command Modifier and Type Method Description CommandBoard.Cleanup. getRestoreCommand()Deprecated, for removal: This API element is subject to removal in a future version. -
Uses of Command in VASSAL.build.module.map.boardPicker.board.mapgrid
Methods in VASSAL.build.module.map.boardPicker.board.mapgrid that return Command Modifier and Type Method Description CommandZone. getRestoreCommand() -
Uses of Command in VASSAL.build.module.noteswindow
Subclasses of Command in VASSAL.build.module.noteswindow Modifier and Type Class Description classAddSecretNoteCommandWhen executed, adds aSecretNoteto a specified List.classSetPrivateTextCommandWhen executed, adds aPrivateTextto a specified set.Methods in VASSAL.build.module.noteswindow that return Command Modifier and Type Method Description CommandPrivateNotesController. decode(String command)CommandSecretNotesController. decode(String command)CommandPrivateNotesController. getRestoreCommand()CommandSecretNotesController. getRestoreCommand()protected CommandAddSecretNoteCommand. myUndoCommand()protected CommandSetPrivateTextCommand. myUndoCommand()CommandPrivateNotesController. save()CommandSecretNotesController. save() -
Uses of Command in VASSAL.build.module.properties
Subclasses of Command in VASSAL.build.module.properties Modifier and Type Class Description classChangePropertyCommandCommand to change the value of aMutablePropertystatic classGlobalProperty.SetGlobalPropertyCommand to pass a new Global property value to other players or into the logfile.Methods in VASSAL.build.module.properties that return Command Modifier and Type Method Description CommandChangePropertyCommandEncoder. decode(String command)CommandGlobalProperty. decode(String command)protected CommandMutableProperty.Impl. getChangeCommand(String oldValue, String newValue)CommandGlobalProperty. getRestoreCommand()protected CommandChangePropertyCommand. myUndoCommand()protected CommandGlobalProperty.SetGlobalProperty. myUndoCommand()CommandGlobalProperty. setPropertyValue(String newValue)CommandMutableProperty.Impl. setPropertyValue(String newValue)CommandMutableProperty. setPropertyValue(String newValue) -
Uses of Command in VASSAL.build.module.turn
Subclasses of Command in VASSAL.build.module.turn Modifier and Type Class Description static classTurnTracker.SetTurnMethods in VASSAL.build.module.turn that return Command Modifier and Type Method Description CommandTurnTracker. decode(String command)CommandTurnTracker. getRestoreCommand()protected CommandTurnTracker.SetTurn. myUndoCommand()Methods in VASSAL.build.module.turn with parameters of type Command Modifier and Type Method Description StringTurnTracker. encode(Command c) -
Uses of Command in VASSAL.chat
Subclasses of Command in VASSAL.chat Modifier and Type Class Description classInviteCommandACommandthat, when executed, sends game synchronization information to a givenSimplePlayerNB InviteCommand is not used by the Jabber Server/ClientclassPrivMsgCommandA Command that encapsulates a private chat message from anotherSimplePlayerstatic classSoundEncoder.CmdclassSynchCommandACommandthat, when executed, sends game synchronization information to a givenSimplePlayerMethods in VASSAL.chat that return Command Modifier and Type Method Description CommandInviteEncoder. decode(String s)CommandPrivateChatEncoder. decode(String s)CommandSoundEncoder. decode(String command)CommandSynchEncoder. decode(String s)CommandHttpMessageServer. getWelcomeMessage()CommandWelcomeMessageServer. getWelcomeMessage()protected CommandInviteCommand. myUndoCommand()CommandPrivMsgCommand. myUndoCommand()protected CommandSoundEncoder.Cmd. myUndoCommand()protected CommandSynchCommand. myUndoCommand()Methods in VASSAL.chat with parameters of type Command Modifier and Type Method Description protected booleanMainRoomFilter. accept(Command c)StringInviteEncoder. encode(Command c)StringPrivateChatEncoder. encode(Command c)StringSoundEncoder. encode(Command c)StringSynchEncoder. encode(Command c)voidChatServerConnection. sendTo(Player recipient, Command c)Send a Command to a particular playervoidDummyClient. sendTo(Player recipient, Command c)voidHybridClient. sendTo(Player recipient, Command c)voidDummyClient. sendToOthers(Command c)voidHybridClient. sendToOthers(Command c) -
Uses of Command in VASSAL.chat.jabber
Methods in VASSAL.chat.jabber with parameters of type Command Modifier and Type Method Description voidJabberClient. sendTo(Player recipient, Command c)voidJabberClient. sendToOthers(Command c) -
Uses of Command in VASSAL.chat.node
Methods in VASSAL.chat.node with parameters of type Command Modifier and Type Method Description voidNodeClient. sendTo(Player recipient, Command c)voidNodeClient. sendToOthers(Command c) -
Uses of Command in VASSAL.chat.peer2peer
Subclasses of Command in VASSAL.chat.peer2peer Modifier and Type Class Description static classTextClient.ShowTextMethods in VASSAL.chat.peer2peer that return Command Modifier and Type Method Description CommandTextClient.Encoder. decode(String command)protected CommandTextClient.ShowText. myUndoCommand()Methods in VASSAL.chat.peer2peer with parameters of type Command Modifier and Type Method Description StringTextClient.Encoder. encode(Command c)voidP2PClient. sendTo(Player recipient, Command c)voidP2PClient. sendToOthers(Command c) -
Uses of Command in VASSAL.command
Subclasses of Command in VASSAL.command Modifier and Type Class Description classAddPieceThis Command adds aGamePieceto a game.classAlertCommandThis command, when executed, displays a Dialog box with a messageclassChangePieceThis Command changes the state of aGamePiece.classConditionalCommandEvaluates properties of the GameModule and conditionally executes another Command if all values are satisfied.classMovePieceCommand that moves a piece to a new location and position within a stack.classNullCommandclassPlayAudioClipCommandclassRemovePieceThis Command removed aGamePiecefrom a game.classSetPersistentPropertyCommandThis Command sets a Persistent Property in a PersistentPropertyContainer.Methods in VASSAL.command that return Command Modifier and Type Method Description CommandChangePiece. append(Command c)CommandCommand. append(Command c)Append a subcommand to this Command.CommandCommandFilter. apply(Command c)Apply the filterCommandCommandEncoder. decode(String command)Translate a String into aCommandCommandChangeTracker. getChangeCommand()CommandConditionalCommand. getDelegate()CommandMoveTracker. getMoveCommand()Command[]Command. getSubCommands()CommandCommand. getUndoCommand()protected CommandAddPiece. myUndoCommand()protected CommandAlertCommand. myUndoCommand()protected CommandChangePiece. myUndoCommand()protected abstract CommandCommand. myUndoCommand()If the action can be undone, return a Command that performs the inverse action.protected CommandConditionalCommand. myUndoCommand()protected CommandMovePiece. myUndoCommand()protected CommandNullCommand. myUndoCommand()protected CommandPlayAudioClipCommand. myUndoCommand()protected CommandRemovePiece. myUndoCommand()protected CommandSetPersistentPropertyCommand. myUndoCommand()Methods in VASSAL.command with parameters of type Command Modifier and Type Method Description protected abstract booleanCommandFilter. accept(Command c)CommandChangePiece. append(Command c)CommandCommand. append(Command c)Append a subcommand to this Command.CommandCommandFilter. apply(Command c)Apply the filterStringCommandEncoder. encode(Command c)Translate aCommandinto a StringvoidLogger. log(Command c)Constructors in VASSAL.command with parameters of type Command Constructor Description ConditionalCommand(ConditionalCommand.Condition[] conditions, Command delegate) -
Uses of Command in VASSAL.counters
Subclasses of Command in VASSAL.counters Modifier and Type Class Description protected static classDeck.LoadDeckCommandCommand to set the contents of this deck from a saved file.Methods in VASSAL.counters that return Command Modifier and Type Method Description CommandCounterGlobalKeyCommand. apply()CommandGlobalCommand. apply(Map[] m, PieceFilter filter)Apply the key command to all pieces that pass the given filter on all the given mapsCommandGlobalCommand. apply(Map m, PieceFilter filter)protected CommandTranslate. classicTranslate(KeyStroke stroke)Classic Translate code.protected CommandTriggerAction. doLoopOnce()protected CommandTriggerAction. executeKey(NamedKeyStroke key)CommandTranslate.MoveExecuter. getAdditionalCommand()CommandGlobalCommand.Visitor. getCommand()CommandKeyBuffer. keyCommand(KeyStroke stroke)CommandBasicPiece. keyEvent(KeyStroke stroke)CommandDecorator. keyEvent(KeyStroke stroke)Append the command returned byDecorator.myKeyEvent(javax.swing.KeyStroke)with the command returned by the inner piece'sGamePiece.keyEvent(javax.swing.KeyStroke)method.CommandGamePiece. keyEvent(KeyStroke stroke)Keyboard events are forward to this method when a piece is selected The GamePiece can respond in any way it likesCommandObscurable. keyEvent(KeyStroke stroke)CommandReportState. keyEvent(KeyStroke stroke)CommandRestrictCommands. keyEvent(KeyStroke stroke)CommandRestricted. keyEvent(KeyStroke stroke)CommandStack. keyEvent(KeyStroke stroke)CommandTranslate. keyEvent(KeyStroke stroke)CommandTriggerAction. keyEvent(KeyStroke stroke)Apply key commands to inner pieces firstCommandUsePrototype. keyEvent(KeyStroke stroke)CommandDeck. loadDeck(File f)protected CommandTranslate. movePiece(GamePiece gp, Point dest)protected CommandTranslate. moveTarget(GamePiece target)CommandActionButton. myKeyEvent(KeyStroke stroke)CommandAreaOfEffect. myKeyEvent(KeyStroke stroke)CommandCalculatedProperty. myKeyEvent(KeyStroke stroke)CommandClone. myKeyEvent(KeyStroke stroke)CommandCounterGlobalKeyCommand. myKeyEvent(KeyStroke stroke)abstract CommandDecorator. myKeyEvent(KeyStroke stroke)The response of this trait alone to the given KeyStrokeCommandDelete. myKeyEvent(KeyStroke stroke)CommandDynamicProperty. myKeyEvent(KeyStroke stroke)CommandEmbellishment. myKeyEvent(KeyStroke stroke)CommandEmbellishment0. myKeyEvent(KeyStroke stroke)CommandFootprint. myKeyEvent(KeyStroke stroke)CommandFreeRotator. myKeyEvent(KeyStroke stroke)CommandGlobalHotKey. myKeyEvent(KeyStroke stroke)CommandHideable. myKeyEvent(KeyStroke stroke)CommandImmobilized. myKeyEvent(KeyStroke e)CommandLabeler. myKeyEvent(KeyStroke stroke)CommandMarker. myKeyEvent(KeyStroke stroke)CommandMenuSeparator. myKeyEvent(KeyStroke stroke)CommandMovementMarkable. myKeyEvent(KeyStroke stroke)CommandNonRectangular. myKeyEvent(KeyStroke stroke)CommandObscurable. myKeyEvent(KeyStroke stroke)CommandPivot. myKeyEvent(KeyStroke stroke)CommandPlaceMarker. myKeyEvent(KeyStroke stroke)CommandPlaySound. myKeyEvent(KeyStroke stroke)CommandPropertySheet. myKeyEvent(KeyStroke stroke)CommandReplace. myKeyEvent(KeyStroke stroke)CommandReportState. myKeyEvent(KeyStroke stroke)CommandRestrictCommands. myKeyEvent(KeyStroke stroke)CommandRestricted. myKeyEvent(KeyStroke stroke)CommandReturnToDeck. myKeyEvent(KeyStroke stroke)CommandSendToLocation. myKeyEvent(KeyStroke stroke)CommandSetGlobalProperty. myKeyEvent(KeyStroke stroke)CommandSubMenu. myKeyEvent(KeyStroke stroke)CommandTableInfo. myKeyEvent(KeyStroke stroke)CommandTranslate. myKeyEvent(KeyStroke stroke)CommandTriggerAction. myKeyEvent(KeyStroke stroke)CommandUsePrototype. myKeyEvent(KeyStroke stroke)protected CommandDeck.LoadDeckCommand. myUndoCommand()protected CommandTranslate. newTranslate(KeyStroke stroke)CommandDeck. pieceAdded(GamePiece p)CommandStack. pieceAdded(GamePiece p)Perform some action on a GamePiece that has just been added to this StackCommandDeck. pieceRemoved(GamePiece p)CommandStack. pieceRemoved(GamePiece p)Perform some action on a GamePiece that has just been removed this Stackprotected CommandPlaceMarker. placeMarker()static CommandDecorator. putOldProperties(GamePiece p)Set the Oldxxxx properties related to movementprotected CommandReplace. replacePiece()protected CommandDeck. reportCommand(String format, String commandName)CommandDeck. reverse()Reverse the order of the contents of the DeckCommandDeck. sendToDeck()Combine the contents of this Deck with the contents of the deck specified byDeck.reshuffleTargetprotected CommandDeck. setContents(Collection<GamePiece> c)Set the contents of this Deck to a Collection of GamePiecesprotected CommandDeck. setContents(Iterator<GamePiece> it)Deprecated, for removal: This API element is subject to removal in a future version.UseDeck.setContents(Collection)instead.CommandDeck. setContentsFaceDown(boolean value)CommandBasicPiece. setPersistentProperty(Object key, Object newValue)CommandDecorator. setPersistentProperty(Object key, Object val)CommandDeck. shuffle()Shuffle the contents of the DeckMethods in VASSAL.counters with parameters of type Command Modifier and Type Method Description voidTranslate.MoveExecuter. setAdditionalCommand(Command c)Constructors in VASSAL.counters with parameters of type Command Constructor Description Visitor(Command command, PieceFilter filter, KeyStroke stroke) -
Uses of Command in VASSAL.launch
Methods in VASSAL.launch that return Command Modifier and Type Method Description CommandBasicModule. decode(String command)Methods in VASSAL.launch with parameters of type Command Modifier and Type Method Description StringBasicModule. encode(Command c) -
Uses of Command in VASSAL.property
Methods in VASSAL.property that return Command Modifier and Type Method Description CommandPersistentPropertyContainer. setPersistentProperty(Object key, Object val)
PieceMover.applyKeyAfterMove(List, KeyStroke)to return Commands