Uses of Class
VASSAL.counters.Stack
Packages that use 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
Methods in VASSAL.build.module with parameters of type StackModifier 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
Methods in VASSAL.build.module.map that return StackModifier and TypeMethodDescriptionprotected StackSetupStack.createStack()StackMetrics.createStack(GamePiece p) StackMetrics.createStack(GamePiece p, boolean force) protected StackDrawPile.initializeContents()protected StackSetupStack.initializeContents()Methods in VASSAL.build.module.map with parameters of type StackModifier and TypeMethodDescriptionprotected 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 booleanCompoundPieceCollection.canStacksMerge(Stack s1, Stack s2) Stacks can merge if their component pieces can mergevoidvoidHandMetrics.draw(Stack stack, Point location, Graphics g, Map map, double zoom, Rectangle visibleRect) voidDifferent instances of StackMetrics may render aStackin different ways.voidStackMetrics.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.intStackMetrics.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 intSetupStack.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
Subclasses of Stack in VASSAL.countersModifier and TypeClassDescriptionclassA collection of pieces that behaves like a deck, i.e.: Doesn't move.Methods in VASSAL.counters that return StackModifier 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.Methods in VASSAL.counters with parameters of type StackModifier and TypeMethodDescriptionbooleanDragBuffer.containsAllMembers(Stack s) booleanKeyBuffer.containsChild(Stack stack) Check if any member of the specified Stack is currently selectedvoidvoidvoidvoidRequired 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
Constructors in VASSAL.script.proxy with parameters of type Stack