AccountClient Class Reference

#include <accountclient.hpp>

Inheritance diagram for AccountClient:

NetComputer List of all members.

Detailed Description

A connected computer that can have an account and character associated with it.

Definition at line 46 of file accountclient.hpp.

Public Member Functions

 AccountClient (ENetPeer *peer)
 Constructor.
 ~AccountClient ()
 Destructor.
void setAccount (AccountPtr acc)
 Set the account associated with the connection.
void unsetAccount ()
 Unset the account associated with the connection.
AccountPtr getAccount () const
 Get account associated with the connection.
void setCharacter (CharacterPtr ch)
 Set the selected character associated with connection.
void unsetCharacter ()
 Deselect the character associated with connection.
CharacterPtr getCharacter () const
 Get character associated with the connection.

Public Attributes

int status

Private Attributes

AccountPtr mAccountPtr
 Account associated with connection.
CharacterPtr mCharacterPtr
 Selected character.


Constructor & Destructor Documentation

AccountClient::AccountClient ENetPeer *  peer  ) 
 

Constructor.

Definition at line 30 of file accountclient.cpp.

AccountClient::~AccountClient  ) 
 

Destructor.

Definition at line 38 of file accountclient.cpp.


Member Function Documentation

AccountPtr AccountClient::getAccount  )  const [inline]
 

Get account associated with the connection.

Definition at line 75 of file accountclient.hpp.

CharacterPtr AccountClient::getCharacter  )  const [inline]
 

Get character associated with the connection.

Definition at line 93 of file accountclient.hpp.

void AccountClient::setAccount AccountPtr  acc  ) 
 

Set the account associated with the connection.

Definition at line 44 of file accountclient.cpp.

void AccountClient::setCharacter CharacterPtr  ch  ) 
 

Set the selected character associated with connection.

Definition at line 50 of file accountclient.cpp.

void AccountClient::unsetAccount  ) 
 

Unset the account associated with the connection.

Definition at line 56 of file accountclient.cpp.

void AccountClient::unsetCharacter  ) 
 

Deselect the character associated with connection.

Definition at line 62 of file accountclient.cpp.


Member Data Documentation

AccountPtr AccountClient::mAccountPtr [private]
 

Account associated with connection.

Definition at line 99 of file accountclient.hpp.

CharacterPtr AccountClient::mCharacterPtr [private]
 

Selected character.

Definition at line 102 of file accountclient.hpp.

int AccountClient::status
 

Definition at line 95 of file accountclient.hpp.


The documentation for this class was generated from the following files:
Generated on Fri Mar 30 15:39:17 2007 for TMW Server by  doxygen 1.3.9.1