Package VASSAL.build.module.map
Class DefaultPieceCollection
java.lang.Object
VASSAL.build.module.map.CompoundPieceCollection
VASSAL.build.module.map.DefaultPieceCollection
- All Implemented Interfaces:
PieceCollection
public class DefaultPieceCollection extends CompoundPieceCollection
Default implementation of
PieceCollection
separates pieces into
two layers: stacking pieces always above non-stacking pieces-
Field Summary
Fields inherited from class VASSAL.build.module.map.CompoundPieceCollection
bottomLayer, enabled, layers
-
Constructor Summary
Constructors Constructor Description DefaultPieceCollection()
-
Method Summary
Modifier and Type Method Description int
getLayerForPiece(GamePiece p)
Methods inherited from class VASSAL.build.module.map.CompoundPieceCollection
add, canMerge, canPiecesMerge, canStackAndPieceMerge, canStacksMerge, clear, getAllPieces, getBottomLayer, getCollectionForPiece, getLayerCount, getLayerForName, getLayerNameForPiece, getPieces, getPieces, getTopLayer, indexOf, initLayers, moveToBack, moveToFront, remove, reset, rotate, rotate, setBottomLayer, setLayerEnabled, setLayerEnabled, toggleLayerEnabled, toggleLayerEnabled
-
Constructor Details
-
DefaultPieceCollection
public DefaultPieceCollection()
-
-
Method Details
-
getLayerForPiece
- Overrides:
getLayerForPiece
in classCompoundPieceCollection
-