Uses of Interface
VASSAL.counters.GamePiece
| 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.map |
Contains classes that may be added to a
Map. |
| VASSAL.build.module.properties | |
| VASSAL.build.widget |
Contains classes that can be added to a
Widget. |
| VASSAL.command |
Provides classes that implement the "Command" design pattern.
|
| VASSAL.configure |
Provides classes for building "Edit Property" dialogs, and for editing
GameModule's and ModuleExtension's. |
| VASSAL.counters |
Provides classes that define game pieces.
|
| VASSAL.i18n | |
| VASSAL.script | |
| VASSAL.script.proxy | |
| VASSAL.tools.imageop | |
| VASSAL.tools.imports.adc2 |
-
Uses of GamePiece in VASSAL.build
Methods in VASSAL.build that return GamePiece Modifier and Type Method Description GamePieceGameModule. createPiece(String type)Central location to create any type of GamePiece from within VASSALGamePieceGameModule. createPiece(String type, GamePiece inner)GamePieceGpIdChecker. 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 GamePiece Modifier and Type Method Description protected 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)GamePieceGameModule. createPiece(String type, GamePiece inner)GamePieceGpIdChecker. createUpdatedPiece(GamePiece oldPiece)Locate the SlotElement that matches oldPiece and return a new GamePiece created from that Slot.booleanGpIdChecker. findUpdatedPiece(GamePiece oldPiece) -
Uses of GamePiece in VASSAL.build.module
Fields in VASSAL.build.module declared as GamePiece Modifier and Type Field Description protected GamePieceInventory.Counter. pieceprotected GamePieceInventory.Counter. sourceFields in VASSAL.build.module with type parameters of type GamePiece Modifier and Type Field Description protected Map<String,GamePiece>GameState. piecesMethods in VASSAL.build.module that return GamePiece Modifier and Type Method Description protected GamePieceBasicCommandEncoder. createBasic(String type)Create a GamePiece instance that is not a DecoratorGamePieceBasicCommandEncoder.BasicPieceFactory. createBasicPiece(String type)GamePieceBasicCommandEncoder. createPiece(String type)Creates a GamePiece instance from the given type information.GamePieceMap. findAnyPiece(Point pt, PieceFinder finder)Use the providedPieceFinderinstance to locate any piece at the given location, regardless of whether it is visible or notGamePieceMap. findPiece(Point pt, PieceFinder finder)Use the providedPieceFinderinstance to locate a visible piece at the given locationGamePiece[]Map. getAllPieces()GamePieceInventory.Counter. getPiece()GamePiecePrototypeDefinition. getPiece()protected GamePiecePrototypeDefinition. getPiece(String def)GamePiecePrototypeDefinition. getPiece(PropertySource props)For the case when the piece definition is a Message Format, expand the definition using the given propertiesGamePieceGameState. getPieceForId(String id)GamePiece[]Map. getPieces()GamePieceInventory. getSelectedCounter()Methods in VASSAL.build.module that return types with arguments of type GamePiece Modifier and Type Method Description Collection<GamePiece>GameState. getAllPieces()Enumeration<GamePiece>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 GamePiece Modifier and Type Method Description booleanInventory.Selector. accept(GamePiece piece)voidGameState. addPiece(GamePiece p)Add aGamePieceto the current game.voidMap. addPiece(GamePiece p)Adds a GamePiece to this map.RectangleMap. boundingBoxOf(GamePiece p)Returns the boundingBox of a GamePiece accounting for the offset of a piece within its parent stack.DecoratorBasicCommandEncoder. createDecorator(String type, GamePiece inner)Creates aDecoratorinstanceDecoratorBasicCommandEncoder.DecoratorFactory. createDecorator(String type, GamePiece inner)protected intInventory. getTotalValue(GamePiece p)intMap. indexOf(GamePiece s)Returns the index of a piece.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.PointMap. positionOf(GamePiece p)Returns the position of a GamePiece accounting for the offset within a parent stack, if anyvoidPlugin. 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.RectangleMap. selectionBoundsOf(GamePiece p)Returns the selection bounding box of a GamePiece accounting for the offset of a piece within a stackvoidInventory.Counter. setPiece(GamePiece piece)voidPrototypeDefinition.Config.Definer. setPiece(GamePiece piece)voidPrototypeDefinition. setPiece(GamePiece p)ObjectMap.Merger. visitDefault(GamePiece piece) -
Uses of GamePiece in VASSAL.build.module.map
Fields in VASSAL.build.module.map declared as GamePiece Modifier and Type Field Description protected GamePieceKeyBufferer. bandSelectPieceprotected GamePiecePieceMover. draggingprotected GamePieceHighlightLastMoved. lastMovedprotected GamePieceSetupStack.StackConfigurer. myPieceprotected GamePieceSetupStack.View. myPieceFields in VASSAL.build.module.map with type parameters of type GamePiece Modifier and Type Field Description protected List<GamePiece>CounterDetailViewer. displayablePiecesprotected List<GamePiece>CounterDetailViewer.Visitor. piecesprotected List<GamePiece>MovementReporter.MoveSummary. piecesprotected Comparator<GamePiece>PieceMover. pieceSorterMethods in VASSAL.build.module.map that return GamePiece Modifier and Type Method Description GamePiece[]CompoundPieceCollection. getAllPieces()GamePiece[]PieceCollection. getAllPieces()Return all pieces in the collection, regardless of visibilityGamePiece[]SimplePieceCollection. getAllPieces()GamePiece[]CompoundPieceCollection. getPieces()protected GamePiece[]CompoundPieceCollection. getPieces(boolean includeDisabled)GamePiece[]PieceCollection. getPieces()Return all currently-visible pieces in the collection as a read-only arrayGamePiece[]SimplePieceCollection. getPieces()Methods in VASSAL.build.module.map that return types with arguments of type GamePiece Modifier and Type Method Description protected List<GamePiece>CounterDetailViewer. getDisplayablePieces()Build an ArrayList of pieces to be displayed in order from bottom up, based on selection criteria setup in config.protected List<GamePiece>GlobalMap.CounterViewer. getDisplayablePieces()List<GamePiece>CounterDetailViewer.Visitor. getPieces()Methods in VASSAL.build.module.map with parameters of type GamePiece Modifier and Type Method Description booleanCounterDetailViewer.Filter. accept(GamePiece piece)booleanCounterDetailViewer.Filter. accept(GamePiece piece, int layer, String layerName)protected booleanSelectionHighlighter. accept(GamePiece p)voidCompoundPieceCollection. add(GamePiece p)voidPieceCollection. add(GamePiece p)Adds a piecevoidSimplePieceCollection. add(GamePiece p)CommandDrawPile. addToContents(GamePiece p)protected voidCounterDetailViewer.Visitor. apply(GamePiece p)RectangleSelectionHighlighter. boundingBox(GamePiece p)booleanCompoundPieceCollection. canMerge(GamePiece p1, GamePiece p2)booleanPieceCollection. canMerge(GamePiece p1, GamePiece p2)Return true if the two pieces can be merged into a single stackbooleanSimplePieceCollection. canMerge(GamePiece p1, GamePiece p2)protected booleanCompoundPieceCollection. canPiecesMerge(GamePiece p1, GamePiece p2)protected booleanLayeredPieceCollection.Collection. canPiecesMerge(GamePiece p1, GamePiece p2)protected booleanCompoundPieceCollection. canStackAndPieceMerge(Stack s, GamePiece p)protected voidMapShader. checkPiece(Area area, GamePiece piece)intPieceMover. compare(GamePiece p1, GamePiece p2)Implement 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)StackStackMetrics. createStack(GamePiece p)StackStackMetrics. createStack(GamePiece p, boolean force)voidSelectionHighlighter. draw(GamePiece p, Graphics g, int x, int y, Component obs, double zoom)protected voidStackMetrics. drawUnexpanded(GamePiece p, Graphics g, int x, int y, Component obs, double zoom)protected RectangleCounterDetailViewer. getBounds(GamePiece piece)protected PieceCollectionCompoundPieceCollection. getCollectionForPiece(GamePiece p)intCompoundPieceCollection. getLayerForPiece(GamePiece p)intDefaultPieceCollection. getLayerForPiece(GamePiece p)intLayeredPieceCollection.Collection. getLayerForPiece(GamePiece p)StringCompoundPieceCollection. getLayerNameForPiece(GamePiece p)StringLayeredPieceCollection.Collection. getLayerNameForPiece(GamePiece p)intCompoundPieceCollection. indexOf(GamePiece p)intPieceCollection. indexOf(GamePiece p)Returns the index of a piece.intSimplePieceCollection. indexOf(GamePiece p)Returns the index of a piece.protected booleanMovementReporter.HiddenMoveSummary. isInvisible(GamePiece piece)CommandMovementReporter. markMoved(GamePiece p)CommandPieceMover. markMoved(GamePiece p, boolean hasMoved)CommandHandMetrics. 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 movedvoidCompoundPieceCollection. moveToBack(GamePiece p)voidPieceCollection. moveToBack(GamePiece p)Reposition a piece to the back of all others in the same layervoidSimplePieceCollection. moveToBack(GamePiece p)voidCompoundPieceCollection. moveToFront(GamePiece p)voidPieceCollection. moveToFront(GamePiece p)Reposition a piece to the front of all others in the same layervoidSimplePieceCollection. moveToFront(GamePiece p)CommandStackMetrics. placeOrMerge(GamePiece fixed, GamePiece moving)Merge the two pieces if stacking is enabled.PointStackMetrics. relativePosition(Stack parent, GamePiece c)voidCompoundPieceCollection. remove(GamePiece p)voidPieceCollection. remove(GamePiece p)Removes the piecevoidSimplePieceCollection. remove(GamePiece p)voidSimplePieceCollection. 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)ObjectCounterDetailViewer.Visitor. visitDefault(GamePiece p)ObjectKeyBufferer.KBDeckVisitor. visitDefault(GamePiece p)ObjectLayeredPieceCollection.Collection. visitDefault(GamePiece p)ObjectPieceRecenterer. visitDefault(GamePiece p)ImplementsDeckVisitor.Method parameters in VASSAL.build.module.map with type arguments of type GamePiece Modifier and Type Method Description protected CommandPieceMover. applyKeyAfterMove(List<GamePiece> pieces, KeyStroke key)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 voidCounterDetailViewer. drawText(Graphics g, Point pt, JComponent comp, List<GamePiece> pieces)protected voidCounterDetailViewer. fixBounds(List<GamePiece> pieces)Set 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 GamePiece Modifier and Type Field Description protected Collection<GamePiece>SumProperties. piecesConstructor parameters in VASSAL.build.module.properties with type arguments of type GamePiece Constructor Description SumProperties(Collection<GamePiece> pieces) -
Uses of GamePiece in VASSAL.build.widget
Fields in VASSAL.build.widget declared as GamePiece Modifier and Type Field Description protected GamePiecePieceSlot. cprotected GamePiecePieceSlot. expandedMethods in VASSAL.build.widget that return GamePiece Modifier and Type Method Description protected GamePiecePieceSlot. getExpandedPiece()Return defined GamePiece with prototypes fully expanded.GamePiecePieceSlot. getPiece()Return defined GamePiece with prototypes unexpanded.Methods in VASSAL.build.widget with parameters of type GamePiece Modifier and Type Method Description voidPieceSlot. setPiece(GamePiece p)voidPieceSlot. updateGpId(GamePiece piece)Allocate new gpid's in the given GamePieceConstructors in VASSAL.build.widget with parameters of type GamePiece Constructor Description PieceSlot(GamePiece p) -
Uses of GamePiece in VASSAL.command
Methods in VASSAL.command that return GamePiece Modifier and Type Method Description GamePieceAddPiece. getTarget()GamePieceRemovePiece. getTarget()Methods in VASSAL.command with parameters of type GamePiece Modifier and Type Method Description protected 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 Constructor Description AddPiece(GamePiece p)AddPiece(GamePiece p, String state)ChangeTracker(GamePiece p)MoveTracker(GamePiece piece)RemovePiece(GamePiece p) -
Uses of GamePiece in VASSAL.configure
Fields in VASSAL.configure declared as GamePiece Modifier and Type Field Description protected GamePieceFormattedStringArrayConfigurer. targetMethods in VASSAL.configure with parameters of type GamePiece Modifier and Type Method Description booleanPropertyExpression. accept(GamePiece piece)booleanPropertyExpression. accept(GamePiece source, GamePiece piece)protected voidFormattedExpressionConfigurer. storePiece(GamePiece p) -
Uses of GamePiece in VASSAL.counters
Subinterfaces of GamePiece in VASSAL.counters Modifier and Type Interface Description interfaceEditablePieceIf a GamePiece implements the EditablePiece interface, then it can be manipulated from the Configuration Tree via the PieceDefiner dialog.Classes in VASSAL.counters that implement GamePiece Modifier and Type Class Description classActionButtonA trait that acts like a button on a GamePiece, such that clicking on a particular area of the piece invokes a keyboard commandclassAreaOfEffectclassBasicPieceBasic class for representing a physical component of the game Can be a counter, a card, or an overlayclassCalculatedPropertyConditional Marker A marker with a variable value depending on conditions.classCloneThis trait adds a command that creates a duplicate of the selected GamepiececlassCounterGlobalKeyCommandAdds a menu item that applies aGlobalCommandto other piecesclassDeckA collection of pieces that behaves like a deck, i.e.: Doesn't move.classDecoratorThe abstract class describing a generic 'trait' of a GamePiece.classDeleteThis trait adds a command that creates a duplicate of the selected GamepiececlassDynamicPropertyTrait that contains a property accessible via getProperty() and updateable dynamically via key commandsclassEmbellishmentThe "Layer" trait.classEmbellishment0Embellishment has been extensively re-written for Vassal 3.2 changing both the behavior and the visual look of the configurer.classFootprintDisplays a movement trail indicating where a piece has been movedclassFreeRotatorA Decorator that rotates a GamePiece to an arbitrary angleclassGlobalHotKeyAdds a menu entry that fires a specified key event to the module window.classHideableclassImmobilizedDecorator that filters events to prevent a GamePiece from being selected and/or moved.classLabelerDisplays a text label, with content specified by the user at runtime.classMarkerA generic Decorator that retains in its state the value of a property.classMenuSeparatorThis trait adds a command that creates a duplicate of the selected GamepiececlassMovementMarkableA GamePiece with this trait will automatically be marked whenever it is moved.classNonRectangularA trait for assigning an arbitrary shape to aGamePiececlassObscurableclassPivotProvides commands to pivot a Game Piece around a given pointclassPlaceMarkerThis Decorator defines a key command to places another counter on top of this one.classPlaySoundA trait that plays a sound clipclassPropertySheetA Decorator class that endows a GamePiece with a dialog.classReplaceGamePiece trait that replaces a GamePiece with another oneclassReportStateA 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)classRestrictCommandsRestrictCommands Restrict the availability of Key Commands, depending on a Property Match String.classRestrictedA GamePiece with the Restricted trait can only be manipulated by the player playing a specific sideclassReturnToDeckGamePiece trait that returns a piece to aDrawPileclassSendToLocationThis trait adds a command that sends a piece to another location.classSetGlobalPropertyclassStackA collection of GamePieces which can be moved as a single unitclassSubMenuA trait that groups menu items of other traits into a sub-menuclassTableInfoA Decorator class that endows a GamePiece with an editable spreadsheet (i.e.classTranslateGive a piece a command that moves it a fixed amount in a particular direction, optionally tracking the current rotation of the piece.classTriggerActionMacro Execute a series of Keystrokes against this same piece - Triggered by own KeyCommand or list of keystrokes - Match against an optional Property FilterclassUsePrototypeThis trait is a placeholder for a pre-defined series of traits specified in aPrototypeDefinitionobject.Fields in VASSAL.counters declared as GamePiece Modifier and Type Field Description protected GamePiece[]Stack. contentsprotected GamePieceObscurable. obscuredToMeViewprotected GamePieceObscurable. obscuredToOthersViewprotected GamePieceTriggerAction. outerprotected GamePieceDecorator. pieceFields in VASSAL.counters with type parameters of type GamePiece Modifier and Type Field Description protected JList<GamePiece>PieceDefiner. availableListprotected static DefaultListModel<GamePiece>PieceDefiner. availableModelprotected DefaultListModel<GamePiece>PieceDefiner. inUseModelprotected List<GamePiece>Deck. nextDrawstatic Predicate<GamePiece>PieceIterator. VISIBLEMethods in VASSAL.counters with type parameters of type GamePiece Modifier and Type Method Description static <T extends GamePiece>
PieceIteratorPieceIterator. visible(Enumeration<T> e)Deprecated.static <T extends GamePiece>
PieceIteratorPieceIterator. visible(Iterator<T> i)Methods in VASSAL.counters that return GamePiece Modifier and Type Method Description GamePieceStack. bottomPiece()GamePieceStack. bottomPiece(String playerId)GamePiecePieceCloner. clonePiece(GamePiece piece)Create a new instance that is a clone of the given piece.GamePiecePlaceMarker. createBaseMarker()The marker, with prototypes unexpandedGamePiecePlaceMarker. createMarker()The marker, with prototypes fully expandedGamePieceReplace. createMarker()protected GamePieceTranslate. findTarget(KeyStroke stroke)static GamePieceDecorator. getDecorator(GamePiece p, Class<?> type)GamePieceUsePrototype. getExpandedInner()Build a new GamePiece instance based on the traits in the referencedPrototypeDefinition.GamePieceDecorator. getInner()static GamePieceDecorator. getInnermost(GamePiece p)static GamePieceDecorator. getOutermost(GamePiece p)GamePiecePieceDefiner. getPiece()GamePieceStack. getPieceAbove(GamePiece p)GamePieceStack. getPieceAt(int index)GamePieceStack. getPieceBeneath(GamePiece p)GamePieceKeyCommand. getTarget()GamePiecePieceIterator. nextPiece()GamePiecePieceFinder.Movable. select(Map map, GamePiece piece, Point pt)GamePiecePieceFinder. select(Map map, GamePiece piece, Point pt)Return the argument GamePiece (or one of its children if a Stack) found at the given point on the given MapGamePieceStack. topPiece()GamePieceStack. topPiece(String playerId)Methods in VASSAL.counters that return types with arguments of type GamePiece Modifier and Type Method Description List<GamePiece>DragBuffer. asList()List<GamePiece>KeyBuffer. asList()List<GamePiece>Stack. asList()Enumeration<GamePiece>KeyBuffer. getPieces()Deprecated.UseKeyBuffer.getPiecesIterator()instead.Enumeration<GamePiece>Stack. getPieces()Deprecated, for removal: This API element is subject to removal in a future version.useStack.asList()Enumeration<GamePiece>Stack. getPiecesInReverseOrder()Deprecated, for removal: This API element is subject to removal in a future version.Enumeration<GamePiece>Stack. getPiecesInVisibleOrder()Deprecated, for removal: This API element is subject to removal in a future version.Iterator<GamePiece>Stack. getPiecesInVisibleOrderIterator()Iterator<GamePiece>KeyBuffer. getPiecesIterator()Iterator<GamePiece>Stack. getPiecesIterator()Iterator<GamePiece>Stack. getPiecesReverseIterator()Methods in VASSAL.counters with parameters of type GamePiece Modifier and Type Method Description booleanBooleanAndPieceFilter. accept(GamePiece piece)booleanBooleanOrPieceFilter. accept(GamePiece piece)ObjectDeckVisitorDispatcher. accept(GamePiece piece)booleanPieceFilter. accept(GamePiece piece)ObjectPieceVisitorDispatcher. accept(GamePiece piece)booleanRangeFilter. accept(GamePiece piece)voidDragBuffer. add(GamePiece p)voidKeyBuffer. add(GamePiece p)voidStack. add(GamePiece c)Adds a piece to the stack.voidTranslate.MoveExecuter. add(Map map, GamePiece piece, Point pos)static voidPieceDefiner. addDefinition(GamePiece definition)Plugins can add additional GamePiece definitionsvoidTranslate.MoveExecuter. addKeyEventTarget(GamePiece piece)voidBoundsTracker. addPiece(GamePiece p)RectangleColoredBorder. boundingBox(GamePiece p)RectangleHighlighter. boundingBox(GamePiece p)GamePiecePieceCloner. clonePiece(GamePiece piece)Create a new instance that is a clone of the given piece.intPieceSorter. compare(GamePiece p1, GamePiece p2)booleanDragBuffer. contains(GamePiece p)booleanKeyBuffer. contains(GamePiece p)voidActionButton.ButtonPusher. doClick(GamePiece p, Point point)Handle a mouse click on the given GamePiece at the given location (where 0,0 is the center of the piece).voidColoredBorder. draw(GamePiece p, Graphics g, int x, int y, Component obs, double zoom)voidHighlighter. draw(GamePiece p, Graphics g, int x, int y, Component obs, double zoom)booleanBasicPiece. equals(GamePiece c)static 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)GamePieceStack. getPieceAbove(GamePiece p)GamePieceStack. getPieceBeneath(GamePiece p)PointTranslate.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)intStack. indexOf(GamePiece p)voidStack. insert(GamePiece p, int pos)Inserts a child GamePiece at a given index.voidStack. insertChild(GamePiece child, int index)Adds a GamePiece to this Stack.protected voidDeck. insertPieceAt(GamePiece p, int index)protected voidStack. insertPieceAt(GamePiece p, int index)protected voidReplace. matchTraits(GamePiece base, GamePiece marker)booleanDeck. mayContain(GamePiece piece)Does the specified GamePiece meet the rules to be contained in this Deck.protected CommandTranslate. movePiece(GamePiece gp, Point dest)protected CommandTranslate. moveTarget(GamePiece target)protected PointSendToLocation. offsetDestination(int x, int y, GamePiece outer)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 Stackstatic CommandDecorator. putOldProperties(GamePiece p)Set the Oldxxxx properties related to movementvoidActionButton.ButtonPusher. register(Component obs, GamePiece piece, int x, int y)Deprecated, for removal: This API element is subject to removal in a future version.voidDragBuffer. remove(GamePiece p)voidKeyBuffer. remove(GamePiece p)voidStack. remove(GamePiece p)GamePiecePieceFinder.Movable. select(Map map, GamePiece piece, Point pt)GamePiecePieceFinder. select(Map map, GamePiece piece, Point pt)Return 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)voidDecorator. setInner(GamePiece p)Set the inner GamePiecevoidFreeRotator. setInner(GamePiece p)voidUsePrototype. setInner(GamePiece p)static voidDecorator. setOldProperties(GamePiece p)Deprecated, for removal: This API element is subject to removal in a future version.voidPieceDefiner. setPiece(GamePiece piece)ObjectGlobalCommand.Visitor. visitDefault(GamePiece p)ObjectPieceFinder.Movable. visitDefault(GamePiece piece)ObjectPieceFinder.StackOnly. visitDefault(GamePiece piece)ObjectPieceVisitor. 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 GamePiece Modifier and Type Method Description protected 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)Constructor parameters in VASSAL.counters with type arguments of type GamePiece Constructor Description PieceIterator(Iterator<? extends GamePiece> i)PieceIterator(Iterator<? extends GamePiece> i, PieceFilter f) -
Uses of GamePiece in VASSAL.i18n
Subinterfaces of GamePiece in VASSAL.i18n Modifier and Type Interface Description interfaceTranslatablePieceDecorators that contain localizable elements must implement this interfaceFields in VASSAL.i18n declared as GamePiece Modifier and Type Field Description protected GamePieceTranslatableMarker. markerDefinitionprotected GamePiecePieceI18nData. pieceConstructors in VASSAL.i18n with parameters of type GamePiece Constructor Description ComponentI18nData(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 GamePiece Modifier and Type Method Description DecoratorBshCommandEncoder. createDecorator(String type, GamePiece inner) -
Uses of GamePiece in VASSAL.script.proxy
Methods in VASSAL.script.proxy with parameters of type GamePiece Modifier and Type Method Description protected voidGamePiece. setVassalGamePiece(GamePiece g)Constructors in VASSAL.script.proxy with parameters of type GamePiece Constructor Description GamePiece(GamePiece g) -
Uses of GamePiece in VASSAL.tools.imageop
Methods in VASSAL.tools.imageop that return GamePiece Modifier and Type Method Description GamePieceGamePieceOp. getPiece()GamePieceGamePieceOpImpl. getPiece()Returns the sourceGamePiece.Methods in VASSAL.tools.imageop with parameters of type GamePiece Modifier and Type Method Description static GamePieceOpOp. piece(GamePiece gp)Constructors in VASSAL.tools.imageop with parameters of type GamePiece Constructor Description GamePieceOpImpl(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 GamePiece Modifier and Type Method Description protected GamePieceADC2Module.Piece. getBasicPiece()protected GamePieceADC2Module.Piece. getGamePiece()
GameState.getAllPieces()instead.