Uses of Class
VASSAL.counters.Stack
| Package | Description |
|---|---|
| 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.counters |
Provides classes that define game pieces.
|
| VASSAL.script.proxy |
-
Uses of Stack in VASSAL.build.module
Methods in VASSAL.build.module with parameters of type Stack Modifier and Type Method Description ObjectMap.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 & piece are in the same layer. -
Uses of Stack in VASSAL.build.module.map
Methods in VASSAL.build.module.map that return Stack Modifier and Type Method Description protected StackSetupStack. createStack()StackStackMetrics. createStack(GamePiece p)StackStackMetrics. createStack(GamePiece p, boolean force)protected StackDrawPile. initializeContents()protected StackSetupStack. initializeContents()Methods in VASSAL.build.module.map with parameters of type Stack Modifier and Type Method Description 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 booleanCompoundPieceCollection. canStacksMerge(Stack s1, Stack s2)Stacks can merge if their component pieces can mergevoidHandMetrics. draw(Stack stack, Graphics g, int x, int y, Component obs, double zoom)voidHandMetrics. draw(Stack stack, Point location, Graphics g, Map map, double zoom, Rectangle visibleRect)voidStackMetrics. draw(Stack stack, Graphics g, int x, int y, Component obs, double zoom)Different 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 stackPointStackMetrics. relativePosition(Stack parent, GamePiece c)ObjectCounterDetailViewer.Visitor. visitStack(Stack s)ObjectKeyBufferer.KBDeckVisitor. visitStack(Stack s)Processes stacks from the mapObjectLayeredPieceCollection.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.ObjectPieceRecenterer. visitStack(Stack s)ImplementsDeckVisitor. -
Uses of Stack in VASSAL.counters
Subclasses of Stack in VASSAL.counters Modifier and Type Class Description classDeckA collection of pieces that behaves like a deck, i.e.: Doesn't move.Methods in VASSAL.counters that return Stack Modifier and Type Method Description StackBasicPiece. getParent()StackDecorator. getParent()StackGamePiece. getParent()StackStack. 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 Stack Modifier and Type Method Description booleanDragBuffer. containsAllMembers(Stack s)booleanKeyBuffer. containsChild(Stack stack)Check if any member of the specified Stack is currently selectedvoidBasicPiece. setParent(Stack s)voidDecorator. setParent(Stack s)voidGamePiece. setParent(Stack s)voidStack. setParent(Stack s)Required for interface but won't be needed for stacksObjectGlobalCommand.Visitor. visitStack(Stack s)ObjectPieceFinder.Movable. visitStack(Stack s)ObjectPieceFinder.PieceInStack. visitStack(Stack s)ObjectPieceFinder.StackOnly. visitStack(Stack s)ObjectPieceVisitor. 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 Constructor Description Stack(Stack s)