Uses of Class
VASSAL.command.Command
Packages that use Command
Package
Description
Provides classes for building Java instances automatically from XML
files.
Contains classes that may be added to a
GameModule.Contains classes that may be added to a
Documentation.Contains classes that may be added to a
Map.Contains classes that may be added to a
MapGrid.Contains classes that may be added to a
NotesWindow.Contains classes for specifying a VASSAL server implementation that follows a chat-room paradigm.
Provides classes that implement the "Command" design pattern.
Provides classes that define game pieces.
-
Uses of Command in VASSAL.build
Methods in VASSAL.build that return CommandModifier and TypeMethodDescriptionDecodes our inboundCommandtraffic -- incoming player commands ready to be executed.AbstractToolbarItem.getRestoreCommand()GameModule.resumeLogging()Restart logging and return any outstanding commandsMethods in VASSAL.build with parameters of type CommandModifier and TypeMethodDescriptionEncodes our outboundCommandtraffic -- outgoing player commands to be sent to other players' clients via either online (server) or logfile (PBEM).voidGameModule.sendAndLog(Command c) When the local player has taken any action that would change the game state (or otherwise needs to be sent to any other players' clients), the action should be encapsulated into aCommandand sent here. -
Uses of Command in VASSAL.build.module
Subclasses of Command in VASSAL.build.moduleModifier and TypeClassDescriptionstatic classstatic classA Command that records whether or not an Undo is in progress.static classThis is aCommandobject that, when executed, displays a text message in the Chatter's text areastatic classstatic classstatic classA command that verifies that a certain extension has been loadedstatic classstatic classprotected classprotected classstatic classstatic classstatic classstatic classCommand for displaying the results of a roll of the diceFields in VASSAL.build.module declared as CommandModifier and TypeFieldDescriptionprotected CommandBasicLogger.beginningStateprotected CommandBasicLogger.LogCommand.loggedFields in VASSAL.build.module with type parameters of type CommandModifier and TypeFieldDescriptionBasicLogger.LogCommand.logInputBasicLogger.logInputBasicLogger.logOutputMethods in VASSAL.build.module that return CommandModifier and TypeMethodDescriptionMap.apply(PieceVisitorDispatcher commandFactory) Attempts to apply the providedPieceVisitorDispatcherto all pieces on this map, until it finds one that returns a non-null Command.protected CommandBasicLogger.LogCommand.assembleCommand()Deserializes a string into a Basic Piece command (Add, Remove, Change, Move, and...Deserializes our command from a string version, if the command belongs to us.A GameState recognizes instances ofGameState.SetupCommandDeserializes our command from a string version, if the command belongs to us.GameState.decodeSavedGame(File saveFile) Read a saved game and translate it into a Command.GameState.decodeSavedGame(InputStream in) protected CommandInventory.HotKeySender.getCommand(Inventory.CounterNode node, KeyStroke stroke) BasicLogger.LogCommand.getLoggedCommand()BasicLogger.getRestoreCommand()ChessClockControl.getRestoreCommand()EventLog.getRestoreCommand()GameComponent.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 nullGameRefresher.getRestoreCommand()GameState.getRestoreCommand()InternetDiceButton.getRestoreCommand()Inventory.getRestoreCommand()Map.getRestoreCommand()As aGameComponent, Map does not have any action inherently needing to be taken for "restoring" itself for load/save and network play purposes (the locations of pieces, etc, are stored in the pieces, and are restored fromGameStatein itsGameState.getRestorePiecesCommand()method, which creates an AddPiece command for each piece).ModuleExtension.getRestoreCommand()ModulePlugin.getRestoreCommand()NewGameIndicator.getRestoreCommand()NotesWindow.getRestoreCommand()ObscurableOptions.getRestoreCommand()PlayerRoster.getRestoreCommand()PredefinedSetup.getRestoreCommand()StartupGlobalKeyCommand.getRestoreCommand()ToolbarMenu.getRestoreCommand()GameState.getRestorePiecesCommand()protected CommandWizardSupport.SavedGameLoader.loadSavedGame()protected CommandWizardSupport.TutorialLoader.loadSavedGame()protected CommandBasicLogger.LogCommand.myUndoCommand()protected CommandBasicLogger.UndoCommand.myUndoCommand()Chatter.DisplayText.myUndoCommand()EventLog.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 CommandPlayerRoster.Remove.myUndoCommand()protected CommandSpecialDiceButton.ShowResults.myUndoCommand()Place a piece at the destination point.Map.placeOrMerge(GamePiece p, Point pt) Move a piece to the destination point.AttachmentManager.removeAttachments(GamePiece piece) A piece is being removed by a Delete or Replace Command.protected CommandInventory.sendHotKeyToPieces(KeyStroke keyStroke) ChessClockControl.startClock(ChessClock targetClock) ChessClockControl.startNextClock()ChessClockControl.startOpponentClock()ChessClockControl.stopAllClocks()ChessClockControl.stopClock(ChessClock targetClock) Methods in VASSAL.build.module with parameters of type CommandModifier and TypeMethodDescriptionprotected voidDoActionButton.doHotKey(Command c, NamedKeyStroke key) Serializes a Basic Piece command (Add, Remove, Change, Move, and ...Recognizes a logging command.Serializes our command into a string, if it belongs to usA GameState recognizes instances ofGameState.SetupCommandSerializes our command into a string, if it belongs to usvoidThis method is used by PredefinedSetup.refresh() to update a PredefinedSetup in a GameModule The default execute() method calls: GameModule.getGameModule().getGameState().getAllPieces() to set the pieces list, this method provides an alternative way to specify which pieces should be refreshed.protected voidDoActionButton.executeActions(Command command) Execute the set of actions that make up this button and return the set of Commands generated.voidLogs a Command to outputvoidGameRefresher.refreshAllAttachments(Command command) AFTER the piece refresh, we now need to go through and restore all the broken Attachment mappings using the indices we created.voidGameRefresher.refreshAttachment(GamePiece piece, Command command) For each *new* outermost piece that has Attachments, we look up the *old* outermost piece, and use its Unique ID plus each Attachment trait's name as a lookup hash to find the old list of contents.voidServerConnection.sendToOthers(Command c) Send a command to other players on the serverConstructors in VASSAL.build.module with parameters of type CommandConstructor parameters in VASSAL.build.module with type arguments of type Command -
Uses of Command in VASSAL.build.module.chessclockcontrol
Methods in VASSAL.build.module.chessclockcontrol that return CommandModifier and TypeMethodDescriptionDeserializes our command from a string version, if the command belongs to us.ChessClock.getRestoreCommand()ChessClock.resetState()Creates a command to reset the clock and turn it offChessClock.startClock()Creates a command to make this clock the currently ticking clockChessClock.stopClock()Creates a command to make this clock the currently ticking clockChessClock.updateState(boolean ticking) Creates a command to update the clock and/or turn it on/off.Methods in VASSAL.build.module.chessclockcontrol with parameters of type Command -
Uses of Command in VASSAL.build.module.documentation
Methods in VASSAL.build.module.documentation that return Command -
Uses of Command in VASSAL.build.module.map
Subclasses of Command in VASSAL.build.module.mapModifier and TypeClassDescriptionstatic classstatic classMethods in VASSAL.build.module.map that return CommandModifier and TypeMethodDescriptionDrawPile.addToContents(GamePiece p) DrawPile.addToContents(GamePiece p, boolean checkAccessibility) DeckGlobalKeyCommand.DeckGlobalCommand.apply(Deck d, PieceFilter filter) protected CommandPieceMover.applyKeyAfterMove(List<GamePiece> pieces, KeyStroke key) Applies a key command to each of a list of pieces.PieceMover.checkTrueMoved(GamePiece p) For a piece, mark it moved IF it changed locations or matsDeserializes string command info into a Flare Command.protected CommandPieceMover.doTrueMovedSupport(List<GamePiece> pieces) For a list of pieces, mark them moved IF they changed locations or matsMovementReporter.getReportCommand()BoardPicker.getRestoreCommand()The restore command of a BoardPicker, when executed, sets the boards of itsMaptoBoardPicker.getSelectedBoards()Flare.getRestoreCommand()GlobalMap.getRestoreCommand()HidePiecesButton.getRestoreCommand()HighlightLastMoved.getRestoreCommand()MapShader.getRestoreCommand()PieceMover.getRestoreCommand()PieceMover has nothing to save/restore in a save file.SetupStack.getRestoreCommand()Zoomer.getRestoreCommand()Handles marking pieces as "moved" or "not moved", based on Global Options settings.MovementReporter.markMovedPieces()Mark all pieces with theMovementMarkabletraitPlace 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 moved.PieceMover.movePieces(Map map, Point p) This is the key method for handling the "Drop" part of Drag and Drop.protected CommandBoardPicker.SetBoards.myUndoCommand()protected CommandLOS_Thread.LOSCommand.myUndoCommand()StackMetrics.placeOrMerge(GamePiece fixed, GamePiece moving) Merge the two pieces if stacking is enabled.Returns a Command that moves all pieces so that their centroid is centered on the map.protected CommandPieceMover.setOldLocations(GamePiece p) Populates the "OldLocations" properties (e.g.Methods in VASSAL.build.module.map with parameters of type CommandModifier and TypeMethodDescriptionprotected MovementReporterPieceMover.createMovementReporter(Command c) Creates aMovementReporterfor a collection of commands containing AddPiece and MovePiece commands, which will supply auto-report messages corresponding to those commandsSerializes Flare commands into string form.protected voidMovementReporter.extractMoveCommands(Command c) Constructors in VASSAL.build.module.map with parameters of type CommandModifierConstructorDescriptionHiddenMovementReporter(Command moveCommand) MovementReporter(Command moveCommand) -
Uses of Command in VASSAL.build.module.map.boardPicker.board.mapgrid
Methods in VASSAL.build.module.map.boardPicker.board.mapgrid that return Command -
Uses of Command in VASSAL.build.module.noteswindow
Subclasses of Command in VASSAL.build.module.noteswindowModifier and TypeClassDescriptionclassWhen executed, adds aSecretNoteto a specified List.classWhen executed, adds aPrivateTextto a specified set.Methods in VASSAL.build.module.noteswindow that return CommandModifier and TypeMethodDescriptionPrivateNotesController.getRestoreCommand()SecretNotesController.getRestoreCommand()protected CommandAddSecretNoteCommand.myUndoCommand()protected CommandSetPrivateTextCommand.myUndoCommand()PrivateNotesController.save()SecretNotesController.save()Methods in VASSAL.build.module.noteswindow with parameters of type Command -
Uses of Command in VASSAL.build.module.properties
Subclasses of Command in VASSAL.build.module.propertiesModifier and TypeClassDescriptionclassCommand to change the value of aMutablePropertystatic classCommand to pass a new Global property value to other players or into the logfile.static classA Command to record the lock status of an individual Scenario Options tabMethods in VASSAL.build.module.properties that return CommandModifier and TypeMethodDescriptionprotected CommandMutableProperty.Impl.getChangeCommand(String oldValue, String newValue) GlobalProperty.getRestoreCommand()GlobalTranslatableMessage.getRestoreCommand()ScenarioOptions.getRestoreCommand()ScenarioPropertiesOptionTab.getRestoreCommand()protected CommandChangePropertyCommand.myUndoCommand()protected CommandGlobalProperty.SetGlobalProperty.myUndoCommand()protected CommandScenarioPropertiesOptionTab.LockScenarioOptionsTab.myUndoCommand()GlobalProperty.setPropertyValue(String newValue) MutableProperty.Impl.setPropertyValue(String newValue) MutableProperty.setPropertyValue(String newValue) Methods in VASSAL.build.module.properties with parameters of type Command -
Uses of Command in VASSAL.build.module.turn
Subclasses of Command in VASSAL.build.module.turnMethods in VASSAL.build.module.turn that return CommandModifier and TypeMethodDescriptionTurnTracker.getRestoreCommand()protected CommandTurnTracker.SetTurn.myUndoCommand()Methods in VASSAL.build.module.turn with parameters of type Command -
Uses of Command in VASSAL.chat
Subclasses of Command in VASSAL.chatModifier and TypeClassDescriptionclassACommandthat, when executed, sends game synchronization information to a givenSimplePlayerclassA Command that encapsulates a private chat message from anotherSimplePlayerstatic classclassACommandthat, when executed, sends game synchronization information to a givenSimplePlayerMethods in VASSAL.chat that return CommandModifier and TypeMethodDescriptionDummyMessageServer.getWelcomeMessage()HttpMessageServer.getWelcomeMessage()WelcomeMessageServer.getWelcomeMessage()protected CommandInviteCommand.myUndoCommand()PrivMsgCommand.myUndoCommand()protected CommandSoundEncoder.Cmd.myUndoCommand()protected CommandSynchCommand.myUndoCommand()Methods in VASSAL.chat with parameters of type CommandModifier and TypeMethodDescriptionprotected booleanvoidSend a Command to a particular playervoidvoidvoidDummyClient.sendToOthers(Command c) voidHybridClient.sendToOthers(Command c) -
Uses of Command in VASSAL.chat.node
Methods in VASSAL.chat.node with parameters of type Command -
Uses of Command in VASSAL.chat.peer2peer
Subclasses of Command in VASSAL.chat.peer2peerMethods in VASSAL.chat.peer2peer that return CommandMethods in VASSAL.chat.peer2peer with parameters of type Command -
Uses of Command in VASSAL.command
Subclasses of Command in VASSAL.commandModifier and TypeClassDescriptionclassThis Command adds aGamePieceto a game.classThis command, when executed, displays a Dialog box with a messageclassThis Command changes the state of aGamePiece.classEvaluates properties of the GameModule and conditionally executes another Command if all values are satisfied.classclassCommand that moves a piece to a new location and position within a stack.classclassclassThis Command removed aGamePiecefrom a game.classThis Command sets a Persistent Property in a PersistentPropertyContainer.Methods in VASSAL.command that return CommandModifier and TypeMethodDescriptionAppend a subcommand to this Command.Apply the filterTranslate a String into aCommandChangeTracker.getChangeCommand()ConditionalCommand.getDelegate()MoveTracker.getMoveCommand()Command[]Command.getSubCommands()Command.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 CommandFlareCommand.myUndoCommand()protected CommandMovePiece.myUndoCommand()protected CommandNullCommand.myUndoCommand()protected CommandPlayAudioClipCommand.myUndoCommand()protected CommandRemovePiece.myUndoCommand()protected CommandSetPersistentPropertyCommand.myUndoCommand()Methods in VASSAL.command with parameters of type CommandModifier and TypeMethodDescriptionprotected abstract booleanAppend a subcommand to this Command.Apply the filterTranslate aCommandinto a StringvoidConstructors in VASSAL.command with parameters of type CommandModifierConstructorDescriptionConditionalCommand(ConditionalCommand.Condition[] conditions, Command delegate) -
Uses of Command in VASSAL.counters
Subclasses of Command in VASSAL.countersModifier and TypeClassDescriptionprotected static classCommand to set the contents of this deck from a saved file.Fields in VASSAL.counters declared as CommandMethods in VASSAL.counters that return CommandModifier and TypeMethodDescriptionCounterGlobalKeyCommand.apply()GlobalCommand.apply(Map[] maps, PieceFilter filter) (Legacy - applies GKC without Fast Match)GlobalCommand.apply(Map[] maps, PieceFilter filter, GlobalCommandTarget fastMatch) Apply the key command to all pieces that pass the given filter and our Fast MatchGlobalCommandTargetparameters on all the given mapsGlobalCommand.apply(Map[] maps, PieceFilter filter, GlobalCommandTarget fastMatch, AuditTrail audit) Apply the key command to all pieces that pass the given filter and our Fast MatchGlobalCommandTargetparameters on all the given mapsGlobalCommand.apply(Map map, PieceFilter filter) (Legacy - applies GKC without Fast Match)GlobalCommand.apply(Map map, PieceFilter filter, GlobalCommandTarget fastMatch) Apply the key command on ONE SPECIFIC MAP to all pieces that pass the given filter and our Fast Match parameters.GlobalCommand.apply(Map map, PieceFilter filter, GlobalCommandTarget fastMatch, AuditTrail audit) Attachment.attach()Runs a search using the provided filter (same as a Global Key Command), and any matching pieces become our attachments (stored in our "contents" list)DeckManager.checkEmptyDecks(Command c) If any decks want to send their I-am-empty key, send it now.default CommandEditablePiece.checkTrueMoved()Centralized method used when finishing up after a piece moves.default CommandGamePiece.checkTrueMoved()protected CommandTranslate.classicTranslate(KeyStroke stroke) Classic Translate code.Attachment.clearAll()Clears all existing attachment(s)Attachment.clearMatching()protected CommandTriggerAction.doLoopOnce()protected CommandTriggerAction.executeKey(NamedKeyStroke key) Deck.extendedSend(DeckSendKeyCommand dkc) Extended Send to Deck Command, based on the configuration of the supplied DeckSendKeyCommand - Deck target can be variable - Optional limit on number of cards to send - Optionally limit selection of cards to those that match an expression - Optionally stop sending cards when a specific card seen (match expression).MatCargo.findNewMat()Finds us a Mat to join at our current location.MatCargo.findNewMat(Map map, Point pt) Finds us a Mat to join at the specified point on a specified map.static CommandMatCargo.findNewMat(Command c, GamePiece gp) Checks if GamePiece gp is a MatCargo, and if so finds it a new mat if needed (or clears it if it has moved off its former mat)default CommandEditablePiece.finishMove(Command c, boolean afterburner, boolean findmat) default CommandEditablePiece.finishMove(Command c, boolean afterburner, boolean findmat, boolean mark_moved) Centralized method for finishing up after a piece moves.default CommandGamePiece.finishMove(Command c, boolean afterburner, boolean findmat) default CommandGamePiece.finishMove(Command c, boolean afterburner, boolean findmat, boolean markMoved) Translate.MoveExecuter.getAdditionalCommand()GlobalCommand.Visitor.getCommand()GlobalCommandVisitor.getCommand()Deck.importDeck()Deck.importDeck(File f) KeyBuffer.keyCommand(KeyStroke stroke) Applies a key command to every selected piece (i.e.The primary way for the piece or trait to receive events.The primary way for the piece or trait to receive events.The primary way for the piece or trait to receive events.Processes a key command for this stack, by sending it to the top visible piece in the stack.Apply key commands to inner pieces firstMat.makeAddCargoCommand(GamePiece p) Adds a piece of cargo and returns a command to duplicate the operation on another clientAttachment.makeAddTargetCommand(GamePiece p) Adds a target and returns a command to duplicate the operation on another clientMatCargo.makeClearMatCommand()Clear our relationship with any Mat we're assigned to, and return a command to do that.Remove all cargo from this Mat, and returns a Command to duplicate the changes on another clientMat.makeRemoveCargoCommand(GamePiece p) Removes a MatCargo piece from our list of cargo, and returns a Command to duplicate the changes on another clientAttachment.makeRemoveTargetCommand(GamePiece p) Removes a piece from our list of targets, and returns a Command to duplicate the changes on another clientMatCargo.makeSetMatCommand(GamePiece newMat) Places us "on" the designated Mat and returns a Command to duplicate the changes on other clientsSetPieceProperty.makeSetTargetCommand(GamePiece p) Our filter has found a matching piece.protected Commandprotected Commandprotected Commandprotected CommandTranslate.moveTarget(GamePiece target) ActionButton.myKeyEvent(KeyStroke stroke) AreaOfEffect.myKeyEvent(KeyStroke stroke) Attachment.myKeyEvent(KeyStroke stroke) BasicName.myKeyEvent(KeyStroke stroke) BorderOutline.myKeyEvent(KeyStroke stroke) CalculatedProperty.myKeyEvent(KeyStroke stroke) Clone.myKeyEvent(KeyStroke stroke) Comment.myKeyEvent(KeyStroke stroke) CounterGlobalKeyCommand.myKeyEvent(KeyStroke stroke) abstract CommandDecorator.myKeyEvent(KeyStroke stroke) The response of this trait alone to the given KeyStroke or the virtual keystroke of aNamedKeyStroke.Delete.myKeyEvent(KeyStroke stroke) Deselect.myKeyEvent(KeyStroke stroke) DynamicProperty.myKeyEvent(KeyStroke stroke) Embellishment.myKeyEvent(KeyStroke stroke) Embellishment0.myKeyEvent(KeyStroke stroke) Footprint.myKeyEvent(KeyStroke stroke) FreeRotator.myKeyEvent(KeyStroke stroke) GlobalHotKey.myKeyEvent(KeyStroke stroke) Hideable.myKeyEvent(KeyStroke stroke) Immobilized.myKeyEvent(KeyStroke e) Labeler.myKeyEvent(KeyStroke stroke) Marker.myKeyEvent(KeyStroke stroke) Mat.myKeyEvent(KeyStroke stroke) MatCargo.myKeyEvent(KeyStroke stroke) MenuSeparator.myKeyEvent(KeyStroke stroke) MovementMarkable.myKeyEvent(KeyStroke stroke) MultiLocationCommand.myKeyEvent(KeyStroke stroke) If the stroke matches our key command, then call the funky "like a static but not actually static" GameModule thing to retrieve the specific menu command being processed -- that is then used to set values for our special trait properties (e.g.NonRectangular.myKeyEvent(KeyStroke stroke) Obscurable.myKeyEvent(KeyStroke stroke) Pivot.myKeyEvent(KeyStroke stroke) PlaceMarker.myKeyEvent(KeyStroke stroke) PlaySound.myKeyEvent(KeyStroke stroke) PropertySheet.myKeyEvent(KeyStroke stroke) Replace.myKeyEvent(KeyStroke stroke) ReportState.myKeyEvent(KeyStroke stroke) RestrictCommands.myKeyEvent(KeyStroke stroke) Restricted.myKeyEvent(KeyStroke stroke) ReturnToDeck.myKeyEvent(KeyStroke stroke) SendToLocation.myKeyEvent(KeyStroke stroke) SetGlobalProperty.myKeyEvent(KeyStroke stroke) SetPieceProperty.myKeyEvent(KeyStroke stroke) SubMenu.myKeyEvent(KeyStroke stroke) TableInfo.myKeyEvent(KeyStroke stroke) TranslatableMessage.myKeyEvent(KeyStroke stroke) Translate.myKeyEvent(KeyStroke stroke) TriggerAction.myKeyEvent(KeyStroke stroke) UsePrototype.myKeyEvent(KeyStroke stroke) protected CommandDeck.LoadDeckCommand.myUndoCommand()protected CommandTranslate.newTranslate(KeyStroke stroke) Deck.pieceAdded(GamePiece p) Stack.pieceAdded(GamePiece p) Perform some action on a GamePiece that has just been added to this StackDeck.pieceRemoved(GamePiece p) Stack.pieceRemoved(GamePiece p) Perform some action on a GamePiece that has just been removed this Stackprotected CommandPlaceMarker.placeMarker()protected CommandPlaceMarker.placeMarker(boolean clearParentId) default CommandEditablePiece.prepareMove(Command c, boolean mark_moved) Centralized method for preparing a piece to move.default CommandGamePiece.prepareMove(Command c, boolean mark_moved) static CommandDecorator.putOldProperties(GamePiece p) * Set the Oldxxxx properties related to movement (e.g.protected CommandReplace.replacePiece()protected CommandDeck.reportCommand(String format, String commandName) Format command report as per module designers setup.protected CommandDeck.reportCommand(FormattedString reportFormat, String commandName) Format command report as per module designers setup.Deck.reverse()Reverse the order of the contents of the DeckFreeRotator.rotateCargo(Command command, Point center, double dtheta) Deck.sendToDeck()Combine the contents of this Deck with the contents of the deck specified byDeck.reshuffleTargetDeck.setContents(Collection<GamePiece> c) Set the contents of this Deck to a Collection of GamePiecesDeck.setContentsFaceDown(boolean value) static CommandDecorator.setDynamicProperties(List<Parameter> parameters, GamePiece piece, PropertySource source, Auditable owner) Find and set a series of Dynamic Properties in the supplied GamePiece named propertyName and generate a Command to set it to the specified values in other clientsstatic CommandDecorator.setDynamicProperties(List<Parameter> parameters, GamePiece piece, PropertySource source, Auditable owner, AuditTrail auditSoFar) static CommandDecorator.setDynamicProperty(String propertyName, String value, GamePiece piece, PropertySource source, Auditable owner, AuditTrail audit) Find a Dynamic Property in the supplied GamePiece named propertyName and generate a Command to set it to the specified valueBasicPiece.setPersistentProperty(Object key, Object newValue) Setting a persistent property writes a property value into the piece (creating a new entry in the piece's persistent property table if the specified key does not yet exist in it).Decorator.setPersistentProperty(Object key, Object val) Default behavior for a Trait/Decorator is to pass requests to set persistent properties inward to the next member of the piece.Deck.shuffle()Shuffle the contents of the DeckDeck.sort(List<SortParameter> sortParameters, FormattedString reportFormat, String menuCommand) Sort the Deck.Methods in VASSAL.counters with parameters of type CommandModifier and TypeMethodDescriptionDeckManager.checkEmptyDecks(Command c) If any decks want to send their I-am-empty key, send it now.static CommandMatCargo.findNewMat(Command c, GamePiece gp) Checks if GamePiece gp is a MatCargo, and if so finds it a new mat if needed (or clears it if it has moved off its former mat)default CommandEditablePiece.finishMove(Command c, boolean afterburner, boolean findmat) default CommandEditablePiece.finishMove(Command c, boolean afterburner, boolean findmat, boolean mark_moved) Centralized method for finishing up after a piece moves.default CommandGamePiece.finishMove(Command c, boolean afterburner, boolean findmat) default CommandGamePiece.finishMove(Command c, boolean afterburner, boolean findmat, boolean markMoved) GlobalAttach.getVisitor(Command command, PieceFilter filter, KeyStroke keyStroke, AuditTrail audit, Auditable owner, int selectFromDeck) protected GlobalCommandVisitorGlobalCommand.getVisitor(Command command, PieceFilter filter, KeyStroke keyStroke, AuditTrail audit, Auditable owner, int selectFromDeck) GlobalDetach.getVisitor(Command command, PieceFilter filter, KeyStroke keyStroke, AuditTrail audit, Auditable owner, int selectFromDeck) GlobalSetter.getVisitor(Command command, PieceFilter filter, KeyStroke keyStroke, AuditTrail audit, Auditable owner, int selectFromDeck) default CommandEditablePiece.prepareMove(Command c, boolean mark_moved) Centralized method for preparing a piece to move.default CommandGamePiece.prepareMove(Command c, boolean mark_moved) FreeRotator.rotateCargo(Command command, Point center, double dtheta) voidTranslate.MoveExecuter.setAdditionalCommand(Command c) Constructors in VASSAL.counters with parameters of type CommandModifierConstructorDescriptionAttachVisitor(Command command, PieceFilter filter, KeyStroke stroke, AuditTrail audit, Auditable owner, int selectFromDeck) DetachVisitor(Command command, PieceFilter filter, KeyStroke stroke, AuditTrail audit, Auditable owner, int selectFromDeck) GlobalCommandVisitor(Command command, PieceFilter filter, KeyStroke stroke) GlobalCommandVisitor(Command command, PieceFilter filter, KeyStroke stroke, AuditTrail audit) GlobalCommandVisitor(Command command, PieceFilter filter, KeyStroke stroke, AuditTrail audit, Auditable owner, int selectFromDeck) GlobalCommandVisitor(Command command, PieceFilter filter, KeyStroke stroke, AuditTrail audit, Auditable owner, int selectFromDeck, GlobalCommand globalCommand) SetVisitor(Command command, PieceFilter filter, KeyStroke stroke, AuditTrail audit, Auditable owner, int selectFromDeck) Visitor(Command command, PieceFilter filter, KeyStroke stroke) Visitor(Command command, PieceFilter filter, KeyStroke stroke, AuditTrail audit) -
Uses of Command in VASSAL.property
Methods in VASSAL.property that return CommandModifier and TypeMethodDescriptionPersistentPropertyContainer.setPersistentProperty(Object key, Object val) Setting a persistent property writes a property value into the piece (creating a new entry in the piece's persistent property table if the specified key does not yet exist in it).