Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

cAccount Class Reference

an Account More...

#include <accounts.h>

List of all members.

Public Methods

 cAccount (ACCOUNT num=-1)
 Constructor.

SERIAL getInWorld ()
 Get char in world.

void setEntering ()
 Set Account in entering.

bool isEntering ()
 returns if accounts is entering

void setOnline (P_CHAR pc)
 Set online with given char.

void setOffline ()
 Set offline.

void onLogin (NXWSOCKET socket)
 On login of account.

bool isOnline ()
 Check if online.

void changePassword (std::string password)
 Change password of account.

void getAllChars (NxwCharWrapper &sc)
 Get list of pg of this account.

void addCharToAccount (P_CHAR pc)
 Add given char to account.

void setLastIp (UI32 ip)
std::string getLastIp ()
 return ip in dotted notation as string


Public Attributes

ACCOUNT number
 Account number.

std::string name
 Account name.

std::string pass
 Account password.

bool ban
 Is banned.

bool ras
 Use Encription.

TIMERVAL tempblock
 Elcabesa tempblock.

TIMERVAL blockeduntil
 Elcabesa tempblock.

unsigned long lastlogin
 Last login time.

unsigned long lastIp
ACCOUNT_STATE state
 Account state.

std::vector< SERIALpgs
 list of pg of this account

SERIAL pc_online
 the online player


Detailed Description

an Account


Constructor & Destructor Documentation

cAccount::cAccount ACCOUNT    num = -1
 

Constructor.

Author:
Endymion


Member Function Documentation

void cAccount::addCharToAccount P_CHAR    pc
 

Add given char to account.

Author:
Endymion
Parameters:
pc  the char

void cAccount::changePassword std::string    password
 

Change password of account.

Author:
Endymion

void cAccount::getAllChars NxwCharWrapper   sc
 

Get list of pg of this account.

Author:
Endymion
Parameters:
sc  the list

SERIAL cAccount::getInWorld  
 

Get char in world.

Author:
Endymion
Returns:
serial of char

std::string cAccount::getLastIp  
 

return ip in dotted notation as string

Author:
Wintermute

bool cAccount::isEntering  
 

returns if accounts is entering

Author:
Wintermute

bool cAccount::isOnline  
 

Check if online.

Author:
Endymion
Returns:
true if online
Note:
Also when entering is online

void cAccount::onLogin NXWSOCKET    socket
 

On login of account.

Author:
Endymion

void cAccount::setEntering  
 

Set Account in entering.

Author:
Endymion

void cAccount::setLastIp UI32    ip [inline]
 

void cAccount::setOffline  
 

Set offline.

Author:
Endymion

void cAccount::setOnline P_CHAR    pc
 

Set online with given char.

Author:
Endymion
Parameters:
pc  the char


Member Data Documentation

bool cAccount::ban
 

Is banned.

TIMERVAL cAccount::blockeduntil
 

Elcabesa tempblock.

unsigned long cAccount::lastIp
 

unsigned long cAccount::lastlogin
 

Last login time.

std::string cAccount::name
 

Account name.

ACCOUNT cAccount::number
 

Account number.

std::string cAccount::pass
 

Account password.

SERIAL cAccount::pc_online
 

the online player

std::vector<SERIAL> cAccount::pgs
 

list of pg of this account

bool cAccount::ras
 

Use Encription.

ACCOUNT_STATE cAccount::state
 

Account state.

TIMERVAL cAccount::tempblock
 

Elcabesa tempblock.


The documentation for this class was generated from the following files: SourceForge.net Logo