public class GameParty<T extends GamePlayer> extends Object
Constructor and Description |
---|
GameParty(Game game,
Class<T> clazz,
List<T> list) |
Modifier and Type | Method and Description |
---|---|
List<T> |
asList() |
T |
getCurrent() |
boolean |
isLastTurn() |
boolean |
isTurn(T player) |
T[] |
iterable()
Returns the internal array used to store the players.
|
T |
nextTurn() |
void |
removePlayer(T player) |
int |
size() |
public boolean isLastTurn()
public T getCurrent()
public T[] iterable()
public int size()
public void removePlayer(T player)
Copyright © 2012. All Rights Reserved.