Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

Player Class Reference

#include <player.h>

List of all members.

Public Member Functions

 Player ()
 Player (Player *p)
 Player (int id)
void setID (int id)
void setName (const char *name)
chargetName ()
int getID ()
void setLatancy (DWORD latancy)
void setLastTimeStamp (DWORD timestamp)
int getLastTimeStamp (void)
int getLatancy (void)

Private Attributes

int id
charname
DWORD latancy
DWORD lastTimeStamp


Detailed Description

Definition at line 10 of file game_netw/Player.h.


Constructor & Destructor Documentation

Player::Player  ) 
 

Definition at line 3 of file player.cpp.

Player::Player Player p  ) 
 

Definition at line 12 of file player.cpp.

References getID().

Here is the call graph for this function:

Player::Player int  id  ) 
 

Definition at line 8 of file player.cpp.


Member Function Documentation

int Player::getID  ) 
 

Definition at line 23 of file player.cpp.

Referenced by PlayerList::addPlayer(), Gne::addPlayer(), Gne::clientThread(), Gne::dealExtras(), Gne::disconnect(), Gne::joinServer(), Gne::listen(), Player(), Gne::sendAttackNT(), Gne::sendChatMsg(), Gne::sendDisconnectToAll(), Gne::sendInfo(), Gne::sendPlayer(), Gne::sendPlayerPosToAll(), Gne::setPlayerActionNT(), Gne::setPlayerDeath(), Gne::setPlayerExtras(), Gne::setPlayerPos(), Gne::setPlayerScore(), Gne::setPlayerState(), and Gne::updatePlayersFromServer().

int Player::getLastTimeStamp void   ) 
 

Definition at line 52 of file player.cpp.

References lastTimeStamp.

Referenced by PlayerList::getLastTimeSamp().

int Player::getLatancy void   ) 
 

Definition at line 43 of file player.cpp.

References latancy.

Referenced by PlayerList::getPlayerLatancy().

char * Player::getName  ) 
 

Definition at line 33 of file player.cpp.

References name.

Referenced by PlayerList::getPlayerNameById(), Menu::handleChar(), Gne::listen(), Join::networkLoop(), Console::process(), Gne::sendPlayer(), and MainApp::update().

void Player::setID int  id  ) 
 

Definition at line 18 of file player.cpp.

Referenced by Gne::clientThread(), Gne::joinServer(), and Gne::listen().

void Player::setLastTimeStamp DWORD  timestamp  ) 
 

Definition at line 48 of file player.cpp.

References lastTimeStamp.

Referenced by PlayerList::setLastTimeStamp().

void Player::setLatancy DWORD  latancy  ) 
 

Definition at line 39 of file player.cpp.

Referenced by PlayerList::setPlayerLatancy().

void Player::setName const char name  ) 
 

Definition at line 28 of file player.cpp.

Referenced by Gne::clientThread(), Gne::joinServer(), and Gne::listen().


Member Data Documentation

int Player::id [private]
 

Definition at line 11 of file game_netw/Player.h.

DWORD Player::lastTimeStamp [private]
 

Definition at line 14 of file game_netw/Player.h.

Referenced by getLastTimeStamp(), and setLastTimeStamp().

DWORD Player::latancy [private]
 

Definition at line 13 of file game_netw/Player.h.

Referenced by getLatancy().

char* Player::name [private]
 

Definition at line 12 of file game_netw/Player.h.

Referenced by getName().


Generated on Sun Jun 5 15:50:52 2005 for Defacto by  doxygen 1.4.3