Source for file PlayerList.php
Documentation is available at PlayerList.php
* Defines PlayerList class.
* @version $Id: PlayerList.php 18 2009-05-11 12:39:18Z 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/
* PlayerList implements list of players in a game.
* Adds a player to the list.
* @param Player $player the player we wish to add
* Returns a player at the specified offset.
* @param int an index of the player
* @return Player|boolthe player at the index or false if the index is out of the range
* Returns a player with the index property equal to the one defined.
* @param int $index player's index
* @return Player|boolfalse if no player has been found
for ($i =
0; $i <
$this->count; $i++
)
if ($this->list[$i]->index ==
$index)
Documentation generated on Mon, 11 May 2009 16:43:37 +0200 by phpDocumentor 1.4.1