VASSAL.build.module.map
Class LayeredPieceCollection.Collection
java.lang.Object
|
+--VASSAL.build.module.map.CompoundPieceCollection
|
+--VASSAL.build.module.map.LayeredPieceCollection.Collection
- All Implemented Interfaces:
- DeckVisitor, PieceCollection, 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
| Methods inherited from class VASSAL.build.module.map.CompoundPieceCollection |
add, canMerge, canStackAndPieceMerge, canStacksMerge, clear, getCollectionForPiece, getPieces, indexOf, initLayers, moveToBack, moveToFront, remove |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LayeredPieceCollection.Collection
public LayeredPieceCollection.Collection(java.lang.String propertyName,
java.lang.String[] layerOrder)
getLayerOrder
public java.lang.String[] getLayerOrder()
setLayerOrder
public void setLayerOrder(java.lang.String[] layerOrder)
getPropertyName
public java.lang.String getPropertyName()
setPropertyName
public void setPropertyName(java.lang.String propertyName)
getLayerForPiece
protected int getLayerForPiece(GamePiece p)
- Overrides:
getLayerForPiece in class CompoundPieceCollection
canPiecesMerge
protected boolean canPiecesMerge(GamePiece p1,
GamePiece p2)
- Overrides:
canPiecesMerge in class CompoundPieceCollection
visitDeck
public java.lang.Object visitDeck(Deck d)
- Description copied from interface:
DeckVisitor
- Perform the operation on a Deck
- Specified by:
visitDeck in interface DeckVisitor
visitDefault
public java.lang.Object visitDefault(GamePiece p)
- 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 interface PieceVisitor
visitStack
public java.lang.Object visitStack(Stack s)
- Description copied from interface:
PieceVisitor
- Perform the operation on a Stack
- Specified by:
visitStack in interface PieceVisitor