|
|||||||||
| Home >> All >> org >> zazof >> [ jteg overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.zazof.jteg
Class PlayerList

java.lang.Objectorg.zazof.jteg.PlayerList
- public class PlayerList
- extends java.lang.Object
This container manages all Players
| Field Summary | |
private static boolean |
DEBUG
|
private java.util.Vector |
players
|
| Constructor Summary | |
PlayerList()
Constructor |
|
| Method Summary | |
void |
addPlayer(Player p)
adds a player to this container, if the id of this player already exists, this player replaces the one in the container |
java.util.Vector |
getOccupiedPlayerColors()
Returns a Vector with all colorsnumers that are currently taken. |
Player |
getPlayer(int player_id)
returns player object |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
players
private java.util.Vector players
DEBUG
private static final boolean DEBUG
- See Also:
- Constant Field Values
| Constructor Detail |
PlayerList
public PlayerList()
- Constructor
| Method Detail |
getPlayer
public Player getPlayer(int player_id) throws java.lang.Exception
- returns player object
addPlayer
public void addPlayer(Player p)
- adds a player to this container, if the id of this player already exists, this player replaces the one in the container
getOccupiedPlayerColors
public java.util.Vector getOccupiedPlayerColors()
- Returns a Vector with all colorsnumers that are currently taken.
The vector contains Integer objects, and has a maximum size of 6 (maximum number of players)
|
|||||||||
| Home >> All >> org >> zazof >> [ jteg overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.zazof.jteg.PlayerList