Uses of Interface
VASSAL.counters.GamePiece
Packages that use GamePiece
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
Map.Contains classes that can be added to a
Widget.Provides classes that implement the "Command" design pattern.
Provides classes for building "Edit Property" dialogs, and for editing
GameModule's and ModuleExtension's.Provides classes that define game pieces.
-
Uses of GamePiece in VASSAL.build
Methods in VASSAL.build that return GamePieceModifier and TypeMethodDescriptionGameModule.createPiece(String type)Central location to create any type of GamePiece from within VASSALGameModule.createPiece(String type, GamePiece inner)Central location to create any type of GamePiece Trait (Decorator) from within VASSALGpIdChecker.createUpdatedPiece(GamePiece oldPiece)Locate the SlotElement that matches oldPiece and return a new GamePiece created from that Slot.Methods in VASSAL.build with parameters of type GamePieceModifier and TypeMethodDescriptionprotected voidGpIdChecker.checkTrait(GamePiece gp)Check for PlaceMarker traits in a GamePiece and add them to the cross-referenceprotected voidGpIdChecker.checkTrait(GamePiece gp, PrototypeDefinition prototype, GamePiece definition)protected voidCopy as much state information as possible from the old piece to the new pieceGameModule.createPiece(String type, GamePiece inner)Central location to create any type of GamePiece Trait (Decorator) from within VASSALGpIdChecker.createUpdatedPiece(GamePiece oldPiece)Locate the SlotElement that matches oldPiece and return a new GamePiece created from that Slot.protected StringGpIdChecker.findState(GamePiece oldPiece, GamePiece pNew, Decorator decoratorNewPc, Class<? extends GamePiece> classToFind)Locate a Decorator in the old piece that has the exact same type as the new Decorator and return it's stateMethod parameters in VASSAL.build with type arguments of type GamePiece -
Uses of GamePiece in VASSAL.build.module
Fields in VASSAL.build.module declared as GamePieceModifier and TypeFieldDescriptionprotected GamePieceInventory.Counter.pieceprotected GamePieceInventory.Counter.sourceFields in VASSAL.build.module with type parameters of type GamePieceMethods in VASSAL.build.module that return GamePieceModifier and TypeMethodDescriptionprotected GamePieceBasicCommandEncoder.createBasic(String type)Create aGamePieceinstance that is not a Decorator ("Trait").BasicCommandEncoder.BasicPieceFactory.createBasicPiece(String type)BasicCommandEncoder.createPiece(String type)Creates a GamePiece instance from the given type information.Map.findAnyPiece(Point pt, PieceFinder finder)Use the providedPieceFinderinstance to locate any piece at the given location, regardless of whether it is visible or not.Map.findPiece(Point pt, PieceFinder finder)Use the providedPieceFinderinstance to locate a visible piece at the given locationMap.getAllPieces()Inventory.Counter.getPiece()PrototypeDefinition.getPiece()protected GamePiecePrototypeDefinition.getPiece(PropertySource props)For the case when the piece definition is a Message Format, expand the definition using the given propertiesGameState.getPieceForId(String id)Map.getPieces()Inventory.getSelectedCounter()Methods in VASSAL.build.module that return types with arguments of type GamePieceModifier and TypeMethodDescriptionGameState.getAllPieces()GameRefresher.getCurrentGameRefresherPieces()GameState.getPieces()Deprecated, for removal: This API element is subject to removal in a future version.Methods in VASSAL.build.module with parameters of type GamePieceModifier and TypeMethodDescriptionbooleanvoidAdd aGamePieceto the current game.voidAdds a GamePiece to this map's list of pieces.Map.boundingBoxOf(GamePiece p)BasicCommandEncoder.createDecorator(String type, GamePiece inner)BasicCommandEncoder.DecoratorFactory.createDecorator(String type, GamePiece inner)protected intInventory.getTotalValue(GamePiece p)intReturns the index of a piece.Place a piece at the destination point.Map.placeOrMerge(GamePiece p, Point pt)Move a piece to the destination point.Map.positionOf(GamePiece p)voidPlugin.registerGamePiece(GamePiece p)Utility routine to register a GamePiece with the PieceDefiner so that it appears as an option in the list of traitsvoidMap.removePiece(GamePiece p)Removes a piece from the mapvoidMap.reposition(GamePiece s, int pos)Deprecated, for removal: This API element is subject to removal in a future version.Map.selectionBoundsOf(GamePiece p)voidvoidvoidMap.Merger.visitDefault(GamePiece piece)Constructors in VASSAL.build.module with parameters of type GamePiece -
Uses of GamePiece in VASSAL.build.module.map
Fields in VASSAL.build.module.map declared as GamePieceModifier and TypeFieldDescriptionprotected GamePieceKeyBufferer.bandSelectPieceprotected GamePiecePieceMover.draggingprotected GamePieceHighlightLastMoved.lastMovedprotected GamePieceSetupStack.StackConfigurer.myPieceprotected GamePieceSetupStack.View.myPieceFields in VASSAL.build.module.map with type parameters of type GamePieceModifier and TypeFieldDescriptionCounterDetailViewer.displayablePiecesCounterDetailViewer.Visitor.piecesMovementReporter.MoveSummary.piecesprotected Comparator<GamePiece>PieceMover.pieceSorterMethods in VASSAL.build.module.map that return GamePieceModifier and TypeMethodDescriptionCompoundPieceCollection.getAllPieces()PieceCollection.getAllPieces()Return all pieces in the collection, regardless of visibilitySimplePieceCollection.getAllPieces()CompoundPieceCollection.getPieces()protected GamePiece[]CompoundPieceCollection.getPieces(boolean includeDisabled)PieceCollection.getPieces()Return all currently-visible pieces in the collection as a read-only arraySimplePieceCollection.getPieces()Methods in VASSAL.build.module.map that return types with arguments of type GamePieceModifier and TypeMethodDescriptionCounterDetailViewer.getDisplayablePieces()Build an ArrayList of pieces to be displayed in order from bottom up, based on selection criteria setup in config.GlobalMap.CounterViewer.getDisplayablePieces()CounterDetailViewer.Visitor.getPieces()Methods in VASSAL.build.module.map with parameters of type GamePieceModifier and TypeMethodDescriptionbooleanbooleanprotected booleanvoidAdds a piece to the overall collection, by adding it to the simple collection for the layer it belongs in.voidAdds a piecevoidDrawPile.addToContents(GamePiece p)protected voidSelectionHighlighter.boundingBox(GamePiece p)booleanUsed when moving a piece on top of another piece to determine whether they can be merged together (e.g.booleanReturn true if the two pieces can be merged into a single stackbooleanprotected booleanCompoundPieceCollection.canPiecesMerge(GamePiece p1, GamePiece p2)Two pieces can merge in the default case as long as neither is presently invisible and neither has a Does Not Stack (Hideable) trait.protected booleanLayeredPieceCollection.Collection.canPiecesMerge(GamePiece p1, GamePiece p2)protected booleanCompoundPieceCollection.canStackAndPieceMerge(Stack s, GamePiece p)A piece can be merged into a stack if it is merge-compatible with the first piece in the stack.protected voidMapShader.checkPiece(Area area, GamePiece piece)intImplement Comparator to sort the contents of the drag buffer before completing the drag.static JPopupMenuMenuDisplayer.createPopup(GamePiece target)static JPopupMenuMenuDisplayer.createPopup(GamePiece target, boolean global)StackMetrics.createStack(GamePiece p)StackMetrics.createStack(GamePiece p, boolean force)voidprotected voidStackMetrics.drawUnexpanded(GamePiece p, Graphics g, int x, int y, Component obs, double zoom)protected Rectangleprotected PieceCollectionCompoundPieceCollection.getCollectionForPiece(GamePiece p)Given a game piece, returns the simple piece collection for the layer that it belongs inintCompoundPieceCollection.getLayerForPiece(GamePiece p)Default implementation is "degenerate", having only a single layer -- when extending this class, this method takes a piece and determines which of several layers it belongs in, returning an index.intDefaultPieceCollection.getLayerForPiece(GamePiece p)intLayeredPieceCollection.Collection.getLayerForPiece(GamePiece p)Gets the appropriate layer for the given piece (or Stack or Deck).CompoundPieceCollection.getLayerNameForPiece(GamePiece p)Default implementation is "degenerate", having only a single layer -- when extending this class, this method takes a piece and determines which of several layers it belongs in, returning the layer name.LayeredPieceCollection.Collection.getLayerNameForPiece(GamePiece p)intintReturns the index of a piece.intReturns the index of a piece.protected booleanMovementReporter.HiddenMoveSummary.isInvisible(GamePiece piece)Handles marking pieces as "moved" or "not moved", based on Global Options settings.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 moved.voidCompoundPieceCollection.moveToBack(GamePiece p)voidPieceCollection.moveToBack(GamePiece p)Reposition a piece to the back of all others in the same visual layervoidSimplePieceCollection.moveToBack(GamePiece p)voidCompoundPieceCollection.moveToFront(GamePiece p)voidPieceCollection.moveToFront(GamePiece p)Reposition a piece to the front of all others in the same visual layervoidSimplePieceCollection.moveToFront(GamePiece p)StackMetrics.placeOrMerge(GamePiece fixed, GamePiece moving)Merge the two pieces if stacking is enabled.StackMetrics.relativePosition(Stack parent, GamePiece c)voidvoidRemoves the piecevoidvoidSimplePieceCollection.reposition(GamePiece p, int pos)static voidHighlightLastMoved.setLastMoved(GamePiece p)voidHighlightLastMoved.setLastMovedPiece(GamePiece p)protected voidPieceMover.setOldLocation(GamePiece p)Deprecated, for removal: This API element is subject to removal in a future version.PieceMover.setOldLocations(GamePiece)to return generated Commandsprotected CommandPieceMover.setOldLocations(GamePiece p)Populates the "OldLocations" properties (e.g.CounterDetailViewer.Visitor.visitDefault(GamePiece p)KeyBufferer.KBDeckVisitor.visitDefault(GamePiece p)Handles non-stacked units, including Does Not Stack units.LayeredPieceCollection.Collection.visitDefault(GamePiece p)Ordinary pieces are queried for their value of the designated layer property, and this value is then checked against the list of layer names.PieceRecenterer.visitDefault(GamePiece p)ImplementsDeckVisitor.Method parameters in VASSAL.build.module.map with type arguments of type GamePieceModifier and TypeMethodDescriptionprotected CommandPieceMover.applyKeyAfterMove(List<GamePiece> pieces, KeyStroke key)Applies a key command to each of a list of pieces.protected voidPieceMover.applyKeyAfterMove(List<GamePiece> pieces, Command comm, KeyStroke key)Deprecated, for removal: This API element is subject to removal in a future version.UsePieceMover.applyKeyAfterMove(List, KeyStroke)to return Commandsprotected voidCounterDetailViewer.drawGraphics(Graphics g, Point pt, JComponent comp, List<GamePiece> pieces)protected voidLabel with the location If the counter viewer is being displayed, then place the location name just above the left hand end of the counters.protected voidSet the bounds field large enough to accommodate the given set of pieces -
Uses of GamePiece in VASSAL.build.module.properties
Fields in VASSAL.build.module.properties with type parameters of type GamePieceConstructor parameters in VASSAL.build.module.properties with type arguments of type GamePiece -
Uses of GamePiece in VASSAL.build.widget
Fields in VASSAL.build.widget declared as GamePieceModifier and TypeFieldDescriptionprotected GamePiecePieceSlot.cprotected GamePiecePieceSlot.expandedMethods in VASSAL.build.widget that return GamePieceModifier and TypeMethodDescriptionprotected GamePiecePieceSlot.getExpandedPiece()Return defined GamePiece with prototypes fully expanded.PieceSlot.getPiece()Return defined GamePiece with prototypes unexpanded.Methods in VASSAL.build.widget with parameters of type GamePieceModifier and TypeMethodDescriptionvoidvoidPieceSlot.updateGpId(GamePiece piece)Allocate new gpids in the given GamePieceConstructors in VASSAL.build.widget with parameters of type GamePiece -
Uses of GamePiece in VASSAL.command
Methods in VASSAL.command that return GamePieceMethods in VASSAL.command with parameters of type GamePieceModifier and TypeMethodDescriptionprotected PieceVisitorDispatcherMovePiece.createMergeFinder(Map map, GamePiece p, Point pt)Creates a newPieceVisitorDispatcherthat will create aCommandobject to merge the target piece with any applicable pieces at the target locationConstructors in VASSAL.command with parameters of type GamePiece -
Uses of GamePiece in VASSAL.configure
Fields in VASSAL.configure declared as GamePieceMethods in VASSAL.configure with parameters of type GamePieceModifier and TypeMethodDescriptionbooleanbooleanprotected voidFormattedExpressionConfigurer.storePiece(GamePiece p)Constructors in VASSAL.configure with parameters of type GamePieceModifierConstructorDescriptionBeanShellExpressionConfigurer(String key, String name, String val, GamePiece piece)Create a labeled BeanShellConfigurer with an initial value and target pieceBeanShellExpressionConfigurer(String key, String name, String val, GamePiece piece, BeanShellExpressionConfigurer.Option option)BeanShellExpressionConfigurer(String key, String name, String val, GamePiece piece, BeanShellExpressionConfigurer.Option option, boolean displayOnly)BeanShellExpressionConfigurer(String key, String name, String val, GamePiece piece, BeanShellExpressionConfigurer.Option option, FunctionBuilder builder)BeanShellExpressionConfigurer(String val, GamePiece piece)Create an unlabeled BeanShellConfigurer with an initial value and target pieceFormattedExpressionConfigurer(String key, String name, String s, GamePiece p)FormattedStringArrayConfigurer(String key, String name, GamePiece target)PropertyExpressionConfigurer(String key, String name, String val, GamePiece piece)PropertyExpressionConfigurer(String key, String name, PropertyExpression val, GamePiece piece)PropertyExpressionConfigurer(PropertyExpression val, GamePiece piece)PropertyNameExpressionConfigurer(String key, String name, String val, GamePiece piece)PropertyNameExpressionConfigurer(String key, String name, PropertyExpression val, GamePiece piece) -
Uses of GamePiece in VASSAL.counters
Subinterfaces of GamePiece in VASSAL.countersModifier and TypeInterfaceDescriptioninterfaceIf class implementing GamePiece also implements the EditablePiece interface, then it can be manipulated from the Editor's Configuration Tree via thePieceDefinerdialog.Classes in VASSAL.counters that implement GamePieceModifier and TypeClassDescriptionclassA Trait (akaDecoratorthat acts like a button on a GamePiece, such that clicking on a particular area of the piece invokes a key commandclassclassBasic class for representing a physical component of the game.classConditional Marker A marker with a variable value depending on conditions.classThis trait adds a command that creates a duplicate of the selected GamepiececlassTrait that sends a Key Command to other pieces, selected with various filters.classA collection of pieces that behaves like a deck, i.e.: Doesn't move.classThe abstract class describing a generic 'Trait' of a full GamePiece.classThis trait adds a command that creates a duplicate of the selected GamepiececlassImplements a trait to allow a piece to be deselected from the KeyBuffer in response to a Key Command.classTrait that contains a property accessible via getProperty() and updatable dynamically via key commandsclassThe "Layer" trait.classEmbellishment has been extensively re-written for Vassal 3.2 changing both the behavior and the visual look of the configurer.classDisplays a movement trail indicating where a piece has been movedclassA Decorator that rotates a GamePiece to an arbitrary angleclassAdds a menu entry that fires a specified key event to the module window.classclassDecorator that filters events to prevent a GamePiece from being selected and/or moved.classDisplays a text label, with content specified by the user at runtime.classA generic Decorator that retains in its state the value of a property.classThis trait adds a command that creates a duplicate of the selected GamepiececlassA GamePiece with this trait will automatically be marked whenever it is moved.classA trait for assigning an arbitrary shape to aGamePiececlassclassProvides commands to pivot a Game Piece around a given pointclassThis Decorator defines a key command to places another counter on top of this one.classA trait that plays a sound clipclassA Decorator class that endows a GamePiece with a dialog.classGamePiece trait that replaces a GamePiece with another oneclassA GamePiece with this trait will echo the piece's current name when any of a given key commands are pressed (and after they take effect)classRestrictCommands Restrict the availability of Key Commands, depending on a Property Match String.classA GamePiece with the Restricted trait can only be manipulated by the player playing a specific sideclassGamePiece trait that returns a piece to aDrawPileclassThis trait adds a command that sends a piece to another location.classclassA Stack is a collection of pieces in the same location that can often be moved with a single drag-and-drop.classA trait that groups menu items of other traits into a sub-menuclassA Decorator class that endows a GamePiece with an editable spreadsheet (i.e.classA trait to expose a translated string as a readable/displayable property.classGive a piece a command that moves it a fixed amount in a particular direction, optionally tracking the current rotation of the piece.classMacro Execute a series of Keystrokes against this same piece - Triggered by own KeyCommand or list of keystrokes - Match against an optional Property FilterclassThis trait is a placeholder for a pre-defined series of traits specified in aPrototypeDefinitionobject.Fields in VASSAL.counters declared as GamePieceModifier and TypeFieldDescriptionprotected GamePiece[]Stack.contentsprotected GamePieceObscurable.obscuredToMeViewprotected GamePieceObscurable.obscuredToOthersViewprotected GamePieceTriggerAction.outerprotected GamePieceDecorator.pieceFields in VASSAL.counters with type parameters of type GamePieceModifier and TypeFieldDescriptionPieceDefiner.availableListprotected static DefaultListModel<GamePiece>PieceDefiner.availableModelprotected DefaultListModel<GamePiece>PieceDefiner.inUseModelDeck.nextDrawprotected ListCellRenderer<? super GamePiece>PieceDefiner.rPieceIterator.VISIBLEMethods in VASSAL.counters with type parameters of type GamePieceModifier and TypeMethodDescriptionstatic <T extends GamePiece>
PieceIteratorPieceIterator.visible(Enumeration<T> e)Deprecated.static <T extends GamePiece>
PieceIteratorMethods in VASSAL.counters that return GamePieceModifier and TypeMethodDescriptionStack.bottomPiece()Stack.bottomPiece(String playerId)PieceCloner.clonePiece(GamePiece piece)Create a new instance that is a clone of the given piece.PlaceMarker.createBaseMarker()The marker, with prototypes unexpandedPlaceMarker.createMarker()The marker, with prototypes fully expandedReplace.createMarker()protected GamePieceTranslate.findTarget(KeyStroke stroke)GlobalCommandTarget.getCurPiece()static GamePieceDecorator.getDecorator(GamePiece p, Class<?> type)UsePrototype.getExpandedInner()Build a new GamePiece instance based on the traits in the referencedPrototypeDefinition.Decorator.getInner()static GamePieceDecorator.getInnermost(GamePiece p)static GamePieceDecorator.getOutermost(GamePiece p)PieceDefiner.getPiece()Stack.getPieceAbove(GamePiece p)Finds the piece "above" the one providedStack.getPieceAt(int index)Stack.getPieceBeneath(GamePiece p)Finds the piece "underneath" the one providedKeyCommand.getTarget()PieceIterator.nextPiece()protected GamePiecePieceDefiner.removeDecorator(int index)Remove the Decorator at a given position in the listReturn the argument GamePiece (or one of its children if a Stack) found at the given point on the given MapStack.topPiece()CAUTION: returns the top VISIBLE piece in the stack, or null if none is visible.Methods in VASSAL.counters that return types with arguments of type GamePieceModifier and TypeMethodDescriptionDragBuffer.asList()KeyBuffer.asList()Returns a list of all selected pieces.Stack.asList()A list of the pieces in the stack.Deck.getOrderedPieces()Return a list if pieces in the Deck in Dealable order.KeyBuffer.getPieces()Deprecated.UseKeyBuffer.getPiecesIterator()instead.Stack.getPieces()Deprecated, for removal: This API element is subject to removal in a future version.useStack.asList()Stack.getPiecesInReverseOrder()Deprecated, for removal: This API element is subject to removal in a future version.Stack.getPiecesInVisibleOrder()Deprecated, for removal: This API element is subject to removal in a future version.Stack.getPiecesInVisibleOrderIterator()Returns pieces in the order in which they are visible to the player -- topmost first In other words, selected pieces first, then unselected pieces from the top to the bottom.KeyBuffer.getPiecesIterator()Returns an iterator for all selected pieces.Stack.getPiecesIterator()Stack.getPiecesReverseIterator()Methods in VASSAL.counters with parameters of type GamePieceModifier and TypeMethodDescriptionbooleanbooleanbooleanbooleanvoidvoidAdding a piece to theKeyBuffer"selects the piece" (and lets it know about in its SELECTED property)voidAdds a piece to the stack.voidstatic voidPieceDefiner.addDefinition(GamePiece definition)Plugins can add additional GamePiece definitionsprotected static voidPieceDefiner.addElement(GamePiece piece)voidTranslate.MoveExecuter.addKeyEventTarget(GamePiece piece)voidColoredBorder.boundingBox(GamePiece p)Highlighter.boundingBox(GamePiece p)PieceCloner.clonePiece(GamePiece piece)Create a new instance that is a clone of the given piece.intbooleanbooleanTells if a particular piece is selected (i.e.voidHandle a mouse click on the given GamePiece at the given location (where 0,0 is the center of the piece).voidvoidbooleanstatic GamePieceDecorator.getDecorator(GamePiece p, Class<?> type)static GamePieceDecorator.getInnermost(GamePiece p)static EmbellishmentEmbellishment.getLayerWithMatchingActivateCommand(GamePiece piece, KeyStroke stroke, boolean active)If the argument GamePiece contains a Layer whose "activate" command matches the given keystroke, and whose active status matches the boolean argument, return that Layerstatic EmbellishmentEmbellishment.getLayerWithMatchingActivateCommand(GamePiece piece, NamedKeyStroke stroke, boolean active)static EmbellishmentEmbellishment0.getLayerWithMatchingActivateCommand(GamePiece piece, KeyStroke stroke, boolean active)If the argument GamePiece contains a Layer whose "activate" command matches the given keystroke, and whose active status matches the boolean argument, return that Layerstatic GamePieceDecorator.getOutermost(GamePiece p)Stack.getPieceAbove(GamePiece p)Finds the piece "above" the one providedStack.getPieceBeneath(GamePiece p)Finds the piece "underneath" the one providedTranslate.MoveExecuter.getUpdatedPosition(GamePiece target)Return the updated position of a piece that has a move calculation recordedprotected voidColoredBorder.highlightSelectionBounds(GamePiece p, Graphics g, int x, int y, Component obs, double zoom)intFinds the index of a piece in the stackvoidInserts a child GamePiece at a given index.voidStack.insertChild(GamePiece child, int index)Adds a GamePiece to this Stack.protected voidPieceDefiner.insertDecorator(int index, GamePiece piece)Insert a Decorator into the list at a given positionprotected voidDeck.insertPieceAt(GamePiece p, int index)Inserts a piece into a specific position into the Deck (counting down from the top)protected voidStack.insertPieceAt(GamePiece p, int index)Insert a piece at a particular point in the stackprotected voidReplace.matchTraits(GamePiece base, GamePiece marker)booleanDeck.mayContain(GamePiece piece)Does the specified GamePiece meet the rules to be contained in this Deck.protected Commandprotected CommandTranslate.moveTarget(GamePiece target)protected PointSendToLocation.offsetDestination(int x, int y, GamePiece outer)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 Stackstatic CommandDecorator.putOldProperties(GamePiece p)* Set the Oldxxxx properties related to movement (e.g.voidDeprecated, for removal: This API element is subject to removal in a future version.voidvoidDeselect the specified piece -- removes it from theKeyBuffervoidReturn the argument GamePiece (or one of its children if a Stack) found at the given point on the given Mapprotected voidPlaceMarker.selectMarker(GamePiece marker)protected voidReplace.selectMarker(GamePiece marker)voidStack.selectNext(GamePiece c)Finds and selects (in the UI) the next piece in the stack after this onevoidGlobalCommandTarget.setCurPiece(GamePiece curPiece)voidvoidvoidstatic voidDecorator.setOldProperties(GamePiece p)Deprecated, for removal: This API element is subject to removal in a future version.voidGlobalCommand.Visitor.visitDefault(GamePiece p)PieceFinder.Movable.visitDefault(GamePiece piece)PieceFinder.StackOnly.visitDefault(GamePiece piece)PieceVisitor.visitDefault(GamePiece p)GamePieces that are not handled by one of the type-specific methods (e.g.Method parameters in VASSAL.counters with type arguments of type GamePieceModifier and TypeMethodDescriptionprotected 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.voidDragBuffer.sort(Comparator<GamePiece> comp)voidKeyBuffer.sort(Comparator<GamePiece> comp)Sorts the selected pieces based on a particular ComparatorConstructors in VASSAL.counters with parameters of type GamePieceModifierConstructorDescriptionActionButton(String type, GamePiece inner)AreaOfEffect(String type, GamePiece inner)CalculatedProperty(String type, GamePiece inner)ComponentMouseListener(GamePiece piece, int x, int y)Deprecated, for removal: This API element is subject to removal in a future version.CounterGlobalKeyCommand(String type, GamePiece inner)DynamicKeyCommand(String name, NamedKeyStroke key, GamePiece target, TranslatablePiece i18nPiece, PropertyChanger propChanger)DynamicProperty(String type, GamePiece p)Embellishment(String type, GamePiece d)Embellishment0(String type, GamePiece d)FreeRotator(String type, GamePiece inner)GlobalHotKey(String type, GamePiece inner)Immobilized(String type, GamePiece p)Immobilized(GamePiece p, String type)Deprecated.UseImmobilized(String, GamePiece)instead.KeyCommand(String name, KeyStroke key, GamePiece target)KeyCommand(String name, KeyStroke key, GamePiece target, boolean enabled)KeyCommand(String name, KeyStroke key, GamePiece target, TranslatablePiece i18nPiece)KeyCommand(String name, KeyStroke key, GamePiece target, TranslatablePiece i18nPiece, boolean enabled)KeyCommand(String name, NamedKeyStroke key, GamePiece target)KeyCommand(String name, NamedKeyStroke key, GamePiece target, boolean enabled)KeyCommand(String name, NamedKeyStroke key, GamePiece target, TranslatablePiece i18nPiece)KeyCommand(String name, NamedKeyStroke key, GamePiece target, TranslatablePiece i18nPiece, boolean enabled)KeyCommandSubMenu(String name, GamePiece target, TranslatablePiece i18nPiece)MenuSeparator(String type, GamePiece inner)MovementMarkable(String type, GamePiece p)NonRectangular(String type, GamePiece inner)Obscurable(String type, GamePiece d)PieceImage(GamePiece piece)Deprecated.PlaceMarker(String type, GamePiece inner)PropertySheet(String type, GamePiece p)ReportState(String type, GamePiece inner)RestrictCommands(String type, GamePiece inner)Restricted(String type, GamePiece p)ReturnToDeck(String type, GamePiece inner)SendToLocation(String type, GamePiece inner)SetGlobalProperty(String type, GamePiece p)Creates a Stack to contain a specific stackable piece.TranslatableMessage(String type, GamePiece p)TriggerAction(String type, GamePiece inner)UsePrototype(String type, GamePiece inner)Constructor parameters in VASSAL.counters with type arguments of type GamePieceModifierConstructorDescriptionPieceIterator(Iterator<? extends GamePiece> i)PieceIterator(Iterator<? extends GamePiece> i, PieceFilter f) -
Uses of GamePiece in VASSAL.i18n
Subinterfaces of GamePiece in VASSAL.i18nModifier and TypeInterfaceDescriptioninterfaceDecorators that contain localizable elements must implement this interfaceFields in VASSAL.i18n declared as GamePieceModifier and TypeFieldDescriptionprotected GamePieceTranslatableMarker.markerDefinitionprotected GamePiecePieceI18nData.pieceConstructors in VASSAL.i18n with parameters of type GamePieceModifierConstructorDescriptionComponentI18nData(Configurable c, GamePiece piece)Special build for PrototypeDefinition and PieceSlotPieceI18nData(GamePiece piece) -
Uses of GamePiece in VASSAL.script
Methods in VASSAL.script with parameters of type GamePieceModifier and TypeMethodDescriptionBshCommandEncoder.createDecorator(String type, GamePiece inner) -
Uses of GamePiece in VASSAL.script.proxy
Methods in VASSAL.script.proxy with parameters of type GamePieceConstructors in VASSAL.script.proxy with parameters of type GamePiece -
Uses of GamePiece in VASSAL.tools.imageop
Methods in VASSAL.tools.imageop that return GamePieceModifier and TypeMethodDescriptionGamePieceOp.getPiece()GamePieceOpImpl.getPiece()Returns the sourceGamePiece.Methods in VASSAL.tools.imageop with parameters of type GamePieceConstructors in VASSAL.tools.imageop with parameters of type GamePieceModifierConstructorDescriptionGamePieceOpImpl(GamePiece gp)Constructs anImageOpwhich will produce an image from the givenGamePiece. -
Uses of GamePiece in VASSAL.tools.imports.adc2
Methods in VASSAL.tools.imports.adc2 that return GamePieceModifier and TypeMethodDescriptionprotected GamePieceADC2Module.Piece.getBasicPiece()protected GamePieceADC2Module.Piece.getGamePiece()
GameState.getAllPieces()instead.