Source for file TeamList.php
Documentation is available at TeamList.php
* Defines TeamList class.
* @version $Id: TeamList.php 23 2009-05-11 12:51:06Z biegleux $
* @author biegleux <biegleux[at]gmail[dot]com>
* @copyright copyright (c) 2008-2009 biegleux
* @license http://www.opensource.org/licenses/gpl-3.0.html GNU General Public License version 3 (GPLv3)
* @link http://recanalyst.sourceforge.net/
* TeamList implements a list of teams in the game.
* Adds a team to the list
* @param Team $team the team we wish to add
public function addTeam (Team $team)
* Returns a team at the specified offset.
* @param int $index an index of the team
* @return Team|boolthe team or false if the index is out of the range
* Returns a team with its index equal as the one required.
* @param int $index team's index
* @return Team|boolthe team or false if no team has been found
for ($i =
0; $i <
$this->count; $i++
)
if ($this->list[$i]->getIndex () ==
$index)
Documentation generated on Mon, 11 May 2009 16:43:54 +0200 by phpDocumentor 1.4.1