org.dartra.framework
Interface Team

All Superinterfaces:
Persistent, Player
All Known Implementing Classes:
StandardTeam

public interface Team
extends Player

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.

Author:
Erwin Vervaet

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

getPlayers

public java.util.Vector getPlayers()

Returns the list of players that are members of this team. The returned list contains Player objects.


getPlayer

public Player getPlayer(int index)

Get the specified member of this team.


getCurrentPlayer

public Player getCurrentPlayer()

Get the currently active player of this team, in the context of the game in which this team is participating.