|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--VASSAL.build.module.map.DefaultPieceCollection
Default implementation of PieceCollection separates pieces into
two layers: stacking pieces always above non-stacking pieces
| Constructor Summary | |
DefaultPieceCollection()
|
|
| Method Summary | |
void |
add(GamePiece p)
Adds a piece |
void |
clear()
Remove all pieces |
protected PieceCollection |
getCollectionForPiece(GamePiece p)
|
GamePiece[] |
getPieces()
Return all pieces in the collection as a read-only array |
int |
indexOf(GamePiece p)
Returns the index of a piece. |
void |
moveToBack(GamePiece p)
Reposition a piece to the back of all others in the same layer |
void |
moveToFront(GamePiece p)
Reposition a piece to the front of all others in the same layer |
void |
remove(GamePiece p)
Removes the piece |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DefaultPieceCollection()
| Method Detail |
protected PieceCollection getCollectionForPiece(GamePiece p)
public void add(GamePiece p)
PieceCollectionadd in interface PieceCollectionpublic void clear()
PieceCollectionclear in interface PieceCollectionpublic GamePiece[] getPieces()
PieceCollectiongetPieces in interface PieceCollectionpublic int indexOf(GamePiece p)
PieceCollectionindexOf in interface PieceCollectionpublic void remove(GamePiece p)
PieceCollectionremove in interface PieceCollectionpublic void moveToBack(GamePiece p)
PieceCollectionmoveToBack in interface PieceCollectionpublic void moveToFront(GamePiece p)
PieceCollectionmoveToFront in interface PieceCollection
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||