#include <playerlist.h>
Public Member Functions | |
PlayerList () | |
int | setMaxPlayers (int num) |
int | getMaxPlayers () |
int | getNumPlayers () |
int | addPlayer (Player *p) |
int | removePlayerById (int playerid) |
void | removeAllPlayers () |
Player * | getPlayerById (int playerid) |
char * | getPlayerNameById (int playerid) |
int | setPlayerLatancy (int playerid, int latancy) |
int | getPlayerLatancy (int playerid) |
void | setPlayerName (int playerid, const char *name) |
int | setLastTimeStamp (int playerid, DWORD timestamp) |
DWORD | getLastTimeSamp (int playerid) |
int | getFreeId () |
bool | isNotFull () |
Private Attributes | |
Player ** | players |
bool * | freeslots |
int | numplayers |
int | maxplayers |
int | insertpos |
bool | isnotfull |
Definition at line 7 of file playerlist.h.
|
Definition at line 7 of file playerlist.cpp. References isnotfull, numplayers, and setMaxPlayers(). Here is the call graph for this function: |
|
Definition at line 59 of file playerlist.cpp. References freeslots, Player::getID(), isnotfull, maxplayers, numplayers, and players. Referenced by Gne::addPlayer(), and Gne::joinServer(). Here is the call graph for this function: |
|
Definition at line 148 of file playerlist.cpp. References freeslots, and maxplayers. Referenced by Gne::getNextPlayerID(). |
|
Definition at line 137 of file playerlist.cpp. References Player::getLastTimeStamp(), and players. Here is the call graph for this function: |
|
Definition at line 16 of file playerlist.cpp. References maxplayers. Referenced by Gne::getMaxPlayers(). |
|
Definition at line 36 of file playerlist.cpp. References numplayers. Referenced by Gne::aPlayer(), Gne::dealExtras(), Gne::getNumPlayers(), Gne::sendAttackNT(), Gne::sendChatMsg(), Gne::sendDisconnectToAll(), Gne::sendInfo(), Gne::sendPlayerPosToAll(), Gne::sendPlayerToAll(), Gne::setPlayerActionNT(), Gne::setPlayerDeath(), Gne::setPlayerExtras(), Gne::setPlayerName(), Gne::setPlayerPos(), Gne::setPlayerScore(), and Gne::setPlayerState(). |
|
Definition at line 41 of file playerlist.cpp. References players. Referenced by Gne::aPlayer(), Gne::getPlayerById(), getPlayerNameById(), setLastTimeStamp(), and setPlayerName(). |
|
Definition at line 121 of file playerlist.cpp. References Player::getLatancy(), and players. Here is the call graph for this function: |
|
Definition at line 50 of file playerlist.cpp. References Player::getName(), and getPlayerById(). Here is the call graph for this function: |
|
Definition at line 143 of file playerlist.cpp. References isnotfull. Referenced by Gne::listen(). |
|
Definition at line 101 of file playerlist.cpp. References freeslots, isnotfull, numplayers, and players. Referenced by Gne::clientThread(). |
|
Definition at line 78 of file playerlist.cpp. References freeslots, isnotfull, numplayers, and players. Referenced by Gne::removePlayerById(). |
|
Definition at line 128 of file playerlist.cpp. References getPlayerById(), and Player::setLastTimeStamp(). Here is the call graph for this function: |
|
Definition at line 22 of file playerlist.cpp. References freeslots, maxplayers, and players. Referenced by PlayerList(), and Gne::setMaxPlayers(). |
|
Definition at line 113 of file playerlist.cpp. References players, and Player::setLatancy(). Here is the call graph for this function: |
|
Definition at line 156 of file playerlist.cpp. References getPlayerById(). Referenced by Gne::aPlayer(), and Gne::clientThread(). Here is the call graph for this function: |
|
Definition at line 10 of file playerlist.h. Referenced by addPlayer(), getFreeId(), removeAllPlayers(), removePlayerById(), and setMaxPlayers(). |
|
Definition at line 13 of file playerlist.h. |
|
Definition at line 14 of file playerlist.h. Referenced by addPlayer(), isNotFull(), PlayerList(), removeAllPlayers(), and removePlayerById(). |
|
Definition at line 12 of file playerlist.h. Referenced by addPlayer(), getFreeId(), getMaxPlayers(), and setMaxPlayers(). |
|
Definition at line 11 of file playerlist.h. Referenced by addPlayer(), getNumPlayers(), PlayerList(), removeAllPlayers(), and removePlayerById(). |
|
Definition at line 9 of file playerlist.h. Referenced by addPlayer(), getLastTimeSamp(), getPlayerById(), getPlayerLatancy(), removeAllPlayers(), removePlayerById(), setMaxPlayers(), and setPlayerLatancy(). |