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)Central location to create any type of GamePiece Trait (Decorator) from within VASSALGamePieceGpIdChecker. 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)protected voidGpIdChecker. copyState(GamePiece oldPiece, GamePiece newPiece)Copy as much state information as possible from the old piece to the new pieceGamePieceGameModule. createPiece(String type, GamePiece inner)Central location to create any type of GamePiece Trait (Decorator) from within VASSALGamePieceGpIdChecker. 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 Modifier and Type Method Description 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 state -
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 aGamePieceinstance that is not a Decorator ("Trait").GamePieceBasicCommandEncoder.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 not.GamePieceMap. 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()List<GamePiece>GameRefresher. getCurrentGameRefresherPieces()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's list of pieces.RectangleMap. boundingBoxOf(GamePiece p)DecoratorBasicCommandEncoder. createDecorator(String type, GamePiece inner)DecoratorBasicCommandEncoder.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)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.RectangleMap. selectionBoundsOf(GamePiece p)voidInventory.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)Adds a piece to the overall collection, by adding it to the simple collection for the layer it belongs in.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)Used when moving a piece on top of another piece to determine whether they can be merged together (e.g.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)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)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)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).StringCompoundPieceCollection. 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.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)Handles marking pieces as "moved" or "not moved", based on Global Options settings.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 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)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)Populates the "OldLocations" properties (e.g.ObjectCounterDetailViewer.Visitor. visitDefault(GamePiece p)ObjectKeyBufferer.KBDeckVisitor. visitDefault(GamePiece p)Handles non-stacked units, including Does Not Stack units.ObjectLayeredPieceCollection.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.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)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 voidCounterDetailViewer. drawText(Graphics g, Point pt, JComponent comp, List<GamePiece> pieces)Label 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 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 gpids 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 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 GamePiece Modifier and Type Class Description classActionButtonA Trait (akaDecoratorthat acts like a button on a GamePiece, such that clicking on a particular area of the piece invokes a key commandclassAreaOfEffectclassBasicPieceBasic class for representing a physical component of the game.classCalculatedPropertyConditional Marker A marker with a variable value depending on conditions.classCloneThis trait adds a command that creates a duplicate of the selected GamepiececlassCounterGlobalKeyCommandTrait that sends a Key Command to other pieces, selected with various filters.classDeckA collection of pieces that behaves like a deck, i.e.: Doesn't move.classDecoratorThe abstract class describing a generic 'Trait' of a full GamePiece.classDeleteThis trait adds a command that creates a duplicate of the selected GamepiececlassDeselectImplements a trait to allow a piece to be deselected from the KeyBuffer in response to a Key Command.classDynamicPropertyTrait that contains a property accessible via getProperty() and updatable 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 Stack is a collection of pieces in the same location that can often be moved with a single drag-and-drop.classSubMenuA 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. nextDrawprotected ListCellRenderer<? super GamePiece>PieceDefiner. rstatic 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)GamePieceGlobalCommandTarget. getCurPiece()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)Finds the piece "above" the one providedGamePieceStack. getPieceAt(int index)GamePieceStack. getPieceBeneath(GamePiece p)Finds the piece "underneath" the one providedGamePieceKeyCommand. getTarget()GamePiecePieceIterator. nextPiece()protected GamePiecePieceDefiner. removeDecorator(int index)Remove the Decorator at a given position in the listGamePiecePieceFinder.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()CAUTION: returns the top VISIBLE piece in the stack, or null if none is visible.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()Returns a list of all selected pieces.List<GamePiece>Stack. asList()A list of the pieces in the stack.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()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.Iterator<GamePiece>KeyBuffer. getPiecesIterator()Returns an iterator for all selected pieces.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)Adding a piece to theKeyBuffer"selects the piece" (and lets it know about in its SELECTED property)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 definitionsprotected static voidPieceDefiner. addElement(GamePiece piece)voidTranslate.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)Tells if a particular piece is selected (i.e.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)Finds the piece "above" the one providedGamePieceStack. getPieceBeneath(GamePiece p)Finds the piece "underneath" the one providedPointTranslate.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)Finds the index of a piece in the stackvoidStack. 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 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 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 movement (e.g.voidActionButton.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)Deselect the specified piece -- removes it from theKeyBuffervoidStack. 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)Finds and selects (in the UI) the next piece in the stack after this onevoidGlobalCommandTarget. setCurPiece(GamePiece curPiece)voidDecorator. setInner(GamePiece p)voidFreeRotator. 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)Sorts the selected pieces based on a particular ComparatorConstructor 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.