|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dartra.standard.PersistentObject
org.dartra.standard.StandardPlayer
org.dartra.standard.StandardTeam
Standard implementation of the Team interface.
| Constructor Summary | |
StandardTeam(User user,
int handicap,
Player[] players)
|
|
| 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. |
void |
setGame(Game game)
Set the game this user is participating in. |
java.lang.String |
toString()
|
| Methods inherited from class org.dartra.standard.StandardPlayer |
getDartsSet, getGame, getHandicap, getTeam, getUser, setTeam |
| Methods inherited from class org.dartra.standard.PersistentObject |
getId, setId |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.dartra.framework.Player |
getDartsSet, getGame, getHandicap, getTeam, getUser, setTeam |
| Methods inherited from interface org.dartra.framework.Persistent |
getId, setId |
| Constructor Detail |
public StandardTeam(User user,
int handicap,
Player[] players)
| Method Detail |
public java.util.Vector getPlayers()
TeamReturns the list of players that are members of this team. The returned list contains Player objects.
getPlayers in interface Teampublic Player getPlayer(int index)
TeamGet the specified member of this team.
getPlayer in interface Teampublic Player getCurrentPlayer()
TeamGet the currently active player of this team, in the context of the game in which this team is participating.
getCurrentPlayer in interface Teampublic void setGame(Game game)
PlayerSet the game this user is participating in.
Implementations should make sure that it is not possible to change the game a user is participating in! This is particularly imporant for matches. The player will participate first and foremost in the match. He or she will also play the games of that match. However, that should have no impact on the game the player is linked with, which will be the match itself.
setGame in interface PlayersetGame in class StandardPlayerpublic java.lang.String toString()
toString in class StandardPlayer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||