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

java.lang.Objectorg.zazof.jtegServer.PlayerContainer
- public class PlayerContainer
- extends java.lang.Object
| Field Summary | |
private java.util.Vector |
$players
|
| Constructor Summary | |
PlayerContainer()
|
|
| Method Summary | |
void |
addPlayer(Player p)
adding 2 times the same player has the same result as adding him/her once. |
java.util.Enumeration |
getActivePlayers()
|
java.util.Enumeration |
getElements()
|
int |
getNumberActivePlayers()
|
int |
getNumberPlayers()
|
Player |
getPlayer(int id)
|
java.util.Vector |
getPlayers()
|
void |
sendMessage(Answer a)
sends the same answer to all the players |
void |
sendMessage(java.lang.String message)
sends the same message to all the players |
| 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
| Constructor Detail |
PlayerContainer
public PlayerContainer()
| Method Detail |
addPlayer
public void addPlayer(Player p)
- adding 2 times the same player has the same result as adding him/her once.
behaviour like sets
sendMessage
public void sendMessage(java.lang.String message)
- sends the same message to all the players
sendMessage
public void sendMessage(Answer a)
- sends the same answer to all the players
getElements
public java.util.Enumeration getElements()
getPlayers
public java.util.Vector getPlayers()
getNumberPlayers
public int getNumberPlayers()
getActivePlayers
public java.util.Enumeration getActivePlayers()
getNumberActivePlayers
public int getNumberActivePlayers()
getPlayer
public Player getPlayer(int id)
|
|||||||||
| Home >> All >> org >> zazof >> [ jtegServer overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.zazof.jtegServer.PlayerContainer