|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Group
Group is really an iterator class. It gets created every time you need to iterate through the list of Player objects, which is really kept in Course. However, Group represents this list upon instantiation and is good for one run through of the Players involved. Bugs: none known
also
Constructor Summary | |
Group(java.util.Vector players)
the constructor takes in a Vector of Player objects over which to iterate. |
Method Summary | |
boolean |
morePlayersLeft()
a boolen test to check if there are any more Players over which to iterate. |
Player |
nextPlayer()
nextPlayer() is called to acces the next Player in the Group. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Group(java.util.Vector players)
Method Detail |
public Player nextPlayer()
public boolean morePlayersLeft()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |