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


Fields inherited from class VASSAL.build.module.map.CompoundPieceCollection
layers
 
Constructor Summary
DefaultPieceCollection()
           
 
Method Summary
protected  int getLayerForPiece(GamePiece p)
           
 
Methods inherited from class VASSAL.build.module.map.CompoundPieceCollection
add, canMerge, canPiecesMerge, 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
 

Constructor Detail

DefaultPieceCollection

public DefaultPieceCollection()
Method Detail

getLayerForPiece

protected int getLayerForPiece(GamePiece p)
Overrides:
getLayerForPiece in class CompoundPieceCollection