|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A team of players. A team has several members, which are also Player objects, so a Team is a composed Player (GoF composite design pattern).
When a team participates in a game or match, all of the players on the team also participate in that game or match and will have their game property set appropriately.
Team objects have reference semantics.
Method Summary | |
Player |
getCurrentPlayer()
Get the currently active player of this team, in the context of the game in which this team is participating. |
Player |
getPlayer(int index)
Get the specified member of this team. |
java.util.Vector |
getPlayers()
Returns the list of players that are members of this team. |
Methods inherited from interface org.dartra.framework.Player |
getDartsSet, getGame, getHandicap, getTeam, getUser, setGame, setTeam |
Methods inherited from interface org.dartra.framework.Persistent |
getId, setId |
Method Detail |
public java.util.Vector getPlayers()
Returns the list of players that are members of this team. The returned list contains Player objects.
public Player getPlayer(int index)
Get the specified member of this team.
public Player getCurrentPlayer()
Get the currently active player of this team, in the context of the game in which this team is participating.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |