Package VASSAL.build.module.map
Class LayeredPieceCollection.Collection
java.lang.Object
VASSAL.build.module.map.CompoundPieceCollection
VASSAL.build.module.map.LayeredPieceCollection.Collection
- All Implemented Interfaces:
PieceCollection,DeckVisitor,PieceVisitor
- Enclosing class:
- LayeredPieceCollection
public static class LayeredPieceCollection.Collection extends CompoundPieceCollection implements DeckVisitor
The PieceCollection class used by the map to which a LayeredPieceCollection has been added
-
Field Summary
Fields inherited from class VASSAL.build.module.map.CompoundPieceCollection
bottomLayer, enabled, layers -
Constructor Summary
Constructors Constructor Description Collection(String propertyName, String[] layerOrder) -
Method Summary
Modifier and Type Method Description protected booleancanPiecesMerge(GamePiece p1, GamePiece p2)intgetLayerForName(String layer)intgetLayerForPiece(GamePiece p)StringgetLayerNameForPiece(GamePiece p)String[]getLayerOrder()StringgetPropertyName()voidsetLayerOrder(String[] layerOrder)voidsetPropertyName(String propertyName)ObjectvisitDeck(Deck d)Perform the operation on a DeckObjectvisitDefault(GamePiece p)GamePieces that are not handled by one of the type-specific methods (e.g.ObjectvisitStack(Stack s)Perform the operation on a StackMethods inherited from class VASSAL.build.module.map.CompoundPieceCollection
add, canMerge, canStackAndPieceMerge, canStacksMerge, clear, getAllPieces, getBottomLayer, getCollectionForPiece, getLayerCount, getPieces, getPieces, getTopLayer, indexOf, initLayers, moveToBack, moveToFront, remove, reset, rotate, rotate, setBottomLayer, setLayerEnabled, setLayerEnabled, toggleLayerEnabled, toggleLayerEnabled
-
Constructor Details
-
Collection
-
-
Method Details
-
getLayerOrder
-
setLayerOrder
-
getPropertyName
-
setPropertyName
-
getLayerForPiece
- Overrides:
getLayerForPiecein classCompoundPieceCollection
-
getLayerForName
- Overrides:
getLayerForNamein classCompoundPieceCollection
-
getLayerNameForPiece
- Overrides:
getLayerNameForPiecein classCompoundPieceCollection
-
canPiecesMerge
- Overrides:
canPiecesMergein classCompoundPieceCollection
-
visitDeck
Description copied from interface:DeckVisitorPerform the operation on a Deck- Specified by:
visitDeckin interfaceDeckVisitor
-
visitDefault
Description copied from interface:PieceVisitorGamePieces that are not handled by one of the type-specific methods (e.g.PieceVisitor.visitStack(VASSAL.counters.Stack)) are handled here- Specified by:
visitDefaultin interfacePieceVisitor
-
visitStack
Description copied from interface:PieceVisitorPerform the operation on a Stack- Specified by:
visitStackin interfacePieceVisitor
-