Uses of Class
VASSAL.counters.Stack
Package
Description
Contains classes that may be added to a
GameModule
.Contains classes that may be added to a
Map
.Provides classes that define game pieces.
-
Uses of Stack in VASSAL.build.module
Modifier and TypeMethodDescriptionMap.Merger.visitStack
(Stack s) Returns a command to merge our piece into the specified stack, provided that the stack is in the precise map location specified, the map allows stacking, our piece allows stacking, and our stack and piece are in the same layer. -
Uses of Stack in VASSAL.build.module.map
Modifier and TypeMethodDescriptionprotected Stack
SetupStack.createStack()
StackMetrics.createStack
(GamePiece p) StackMetrics.createStack
(GamePiece p, boolean force) protected Stack
DrawPile.initializeContents()
protected Stack
SetupStack.initializeContents()
Modifier and TypeMethodDescriptionprotected boolean
CompoundPieceCollection.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 boolean
CompoundPieceCollection.canStacksMerge
(Stack s1, Stack s2) Stacks can merge if their component pieces can mergevoid
void
HandMetrics.draw
(Stack stack, Point location, Graphics g, Map map, double zoom, Rectangle visibleRect) void
Different instances of StackMetrics may render aStack
in different ways.void
StackMetrics.draw
(Stack stack, Point location, Graphics g, Map map, double zoom, Rectangle visibleRect) Draw only those pieces in the target stack whose boundingBoxes fall within the given visibleRect This method is considerably faster than the other draw method.int
StackMetrics.getContents
(Stack parent, Point[] positions, Shape[] shapes, Rectangle[] boundingBoxes, int x, int y) Fill the argument arrays with the positions, selection bounds and bounding boxes of the pieces in the argument stackprotected int
SetupStack.recursiveInitializeContents
(Stack s, Configurable[] c, int num) Traverses children components recursively (to support folder structure), adding any pieces found in PieceSlot objects to our stack.StackMetrics.relativePosition
(Stack parent, GamePiece c) CounterDetailViewer.Visitor.visitStack
(Stack s) KeyBufferer.KBDeckVisitor.visitStack
(Stack s) Processes stacks from the mapLayeredPieceCollection.Collection.visitStack
(Stack s) Stacks are first checked for the "topPiece()", but since this method actually hides from us pieces hidden from the currently active player by theHideable
("Invisible") trait, we fall back on the Stack's own memory of what layer it has been in.PieceRecenterer.visitStack
(Stack s) ImplementsDeckVisitor
. -
Uses of Stack in VASSAL.counters
Modifier and TypeClassDescriptionclass
A collection of pieces that behaves like a deck, i.e.: Doesn't move.Modifier and TypeMethodDescriptionBasicPiece.getParent()
Decorator.getParent()
GamePiece.getParent()
Stack.getParent()
Stacks cannot contain other stacks/decks, nor be contained in them, so parent is always null.Modifier and TypeMethodDescriptionboolean
DragBuffer.containsAllMembers
(Stack s) boolean
KeyBuffer.containsChild
(Stack stack) Check if any member of the specified Stack is currently selectedvoid
void
void
void
Required for interface but won't be needed for stacksGlobalCommand.Visitor.visitStack
(Stack s) GlobalCommandVisitor.visitStack
(Stack s) PieceFinder.MatOnly.visitStack
(Stack s) PieceFinder.Movable.visitStack
(Stack s) PieceFinder.PieceInStack.visitStack
(Stack s) PieceFinder.StackOnly.visitStack
(Stack s) PieceVisitor.visitStack
(Stack s) Perform the operation on a Stack -
Uses of Stack in VASSAL.script.proxy