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

GameClient Class Reference

#include <client.h>

List of all members.

Public Member Functions

 GameClient ()
 ~GameClient ()
void set_login_data (char *na, char *pa)
void connect_to (char *server, int port=SERVER_LISTEN_PORT)
bool disconnect ()
void handleMessage (const netMessage &msg)


Constructor & Destructor Documentation

GameClient::GameClient  ) 
 

Definition at line 3 of file client.cpp.

References NOT_CONNECTED, and SERVER_LISTEN_PORT.

GameClient::~GameClient  ) 
 

Definition at line 9 of file client.cpp.

References MSG_CLIENT_LOGOFF, and NOT_CONNECTED.


Member Function Documentation

void GameClient::connect_to char *  server,
int  port = SERVER_LISTEN_PORT
 

Definition at line 16 of file client.cpp.

References MSG_LOGIN, and TRYING_CON.

bool GameClient::disconnect  ) 
 

Definition at line 38 of file client.cpp.

References MSG_CLIENT_LOGOFF, and NOT_CONNECTED.

void GameClient::handleMessage const netMessage &  msg  ) 
 

Definition at line 60 of file client.cpp.

References CONNECTED, MSG_LOGIN_FAIL, MSG_LOGIN_OK, MSG_SERVER_DOWN, NOT_CONNECTED, and TRYING_CON.

void GameClient::set_login_data char *  na,
char *  pa
 


The documentation for this class was generated from the following files:
Generated on Sat Jul 12 04:29:22 2003 for glPirates by doxygen 1.3.2