|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Manages a collection of GamePieces in a Map
| Method Summary | |
void |
add(GamePiece p)
Adds a piece |
void |
clear()
Remove all pieces |
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 |
| Method Detail |
public void moveToFront(GamePiece p)
public void moveToBack(GamePiece p)
public GamePiece[] getPieces()
public int indexOf(GamePiece p)
public void remove(GamePiece p)
public void add(GamePiece p)
public void clear()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||