Methods Summary |
---|
void | addElement(bingo.shared.PlayerRecord p, RingMaster ringMaster)
roster.addElement(p);
if (roster.size() == 1)
ringMaster.startCountDown();
ringMaster.sendPlayerStatusMessage(p);
|
int | nextPlayerID()
return ++nextPlayerID;
|
void | removeAllElements()
roster.removeAllElements();
nextPlayerID = 0;
|
bingo.shared.PlayerRecord | searchForPlayerWithID(int ID)
int size = roster.size();
for (int i = 0; i < size; i ++) {
PlayerRecord pl = (PlayerRecord)(roster.elementAt(i));
if (pl.ID == ID)
return pl;
}
return null;
|
int | size()
return roster.size();
|