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 boolean
canPiecesMerge(GamePiece p1, GamePiece p2)
int
getLayerForName(String layer)
int
getLayerForPiece(GamePiece p)
String
getLayerNameForPiece(GamePiece p)
String[]
getLayerOrder()
String
getPropertyName()
void
setLayerOrder(String[] layerOrder)
void
setPropertyName(String propertyName)
Object
visitDeck(Deck d)
Perform the operation on a DeckObject
visitDefault(GamePiece p)
GamePieces that are not handled by one of the type-specific methods (e.g.Object
visitStack(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:
getLayerForPiece
in classCompoundPieceCollection
-
getLayerForName
- Overrides:
getLayerForName
in classCompoundPieceCollection
-
getLayerNameForPiece
- Overrides:
getLayerNameForPiece
in classCompoundPieceCollection
-
canPiecesMerge
- Overrides:
canPiecesMerge
in classCompoundPieceCollection
-
visitDeck
Description copied from interface:DeckVisitor
Perform the operation on a Deck- Specified by:
visitDeck
in interfaceDeckVisitor
-
visitDefault
Description copied from interface:PieceVisitor
GamePieces that are not handled by one of the type-specific methods (e.g.PieceVisitor.visitStack(VASSAL.counters.Stack)
) are handled here- Specified by:
visitDefault
in interfacePieceVisitor
-
visitStack
Description copied from interface:PieceVisitor
Perform the operation on a Stack- Specified by:
visitStack
in interfacePieceVisitor
-