Class Team

Description

Class Team.

Team implements a team in the game.

Located in /Team.php (line 21)

TList
   |
   --PlayerList
      |
      --Team
Method Summary
Team __construct ()
void addPlayer (Player $player)
int getIndex ()
Variables

Inherited Variables

Inherited from TList

TList::$count
TList::$list
Methods
Constructor __construct (line 34)

Constructor.

  • access: public
Team __construct ()

Redefinition of:
TList::__construct()
Class constructor.
addPlayer (line 45)

Adds a player to the team.

  • access: public
void addPlayer (Player $player)
  • Player $player: the player we wish to add

Redefinition of:
PlayerList::addPlayer()
Adds a player to the list.
getIndex (line 60)

Returns an index of the team.

  • return: team's index
  • access: public
int getIndex ()

Inherited Methods

Inherited From PlayerList

PlayerList::addPlayer()
PlayerList::getPlayer()
PlayerList::getPlayerByIndex()

Inherited From TList

TList::__construct()
TList::addItem()
TList::clear()
TList::current()
TList::getCount()
TList::getItem()
TList::key()
TList::next()
TList::rewind()
TList::valid()

Documentation generated on Mon, 11 May 2009 16:43:53 +0200 by phpDocumentor 1.4.1