Pol  Rev 533
Account Class Reference

#include <account.h>

+ Inheritance diagram for Account:
+ Collaboration diagram for Account:

List of all members.

Public Member Functions

 Account (ConfigElem &elem)
 ~Account ()
bool banned () const
void clear_character (int index)
unsigned short convert_uo_expansion (const std::string &expansion) const
unsigned char default_cmdlevel () const
std::string default_privlist () const
bool enabled () const
Characterget_character (int index)
int getnextfreeslot () const
const char * name () const
int numchars () const
const std::string password () const
const std::string passwordhash () const
void readfrom (ConfigElem &elem)
void set_character (int index, Character *chr)
void set_password (std::string newpass)
void set_passwordhash (std::string newpass)
const std::string uo_expansion () const
const unsigned short uo_expansion_flag () const
void writeto (std::ostream &os)
void writeto (ConfigElem &elem) const

Public Attributes

Characteractive_character

Private Attributes

bool banned_
vector< CharacterRefcharacters_
unsigned char default_cmdlevel_
StringSet default_privs_
bool enabled_
std::string name_
StringSet options_
std::string password_
std::string passwordhash_
PropertyList props_
unsigned short uo_expansion_

Friends

class AccountObjImp

Detailed Description

Definition at line 27 of file account.h.


Constructor & Destructor Documentation

Account::Account ( ConfigElem elem) [explicit]

Definition at line 26 of file account.cpp.

References PolConfig::character_slots, characters_, config, and readfrom().

+ Here is the call graph for this function:

Definition at line 140 of file account.cpp.

References Client::acct, Character::acct, active_character, PolConfig::character_slots, characters_, ref_ptr< T >::clear(), Character::client, and config.

+ Here is the call graph for this function:


Member Function Documentation

bool Account::banned ( ) const

Definition at line 248 of file account.cpp.

References banned_.

Referenced by AccountObjImp::get_member_id(), login2(), and loginserver_login().

+ Here is the caller graph for this function:

void Account::clear_character ( int  index)

Definition at line 178 of file account.cpp.

References characters_.

Referenced by AccountObjImp::call_method_id(), delete_character(), and Character::~Character().

+ Here is the caller graph for this function:

u16 Account::convert_uo_expansion ( const std::string &  expansion) const

Definition at line 219 of file account.cpp.

References AOS, HSA, KR, LBR, ML, SA, SE, and T2A.

Referenced by AccountObjImp::call_method_id(), and readfrom().

+ Here is the caller graph for this function:

unsigned char Account::default_cmdlevel ( ) const

Definition at line 258 of file account.cpp.

References default_cmdlevel_.

Referenced by ClientCreateChar(), ClientCreateChar70160(), and ClientCreateCharKR().

+ Here is the caller graph for this function:

std::string Account::default_privlist ( ) const

Definition at line 253 of file account.cpp.

References default_privs_, and StringSet::extract().

Referenced by ClientCreateChar(), ClientCreateChar70160(), and ClientCreateCharKR().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool Account::enabled ( ) const

Definition at line 243 of file account.cpp.

References enabled_.

Referenced by AccountObjImp::get_member_id(), login2(), and loginserver_login().

+ Here is the caller graph for this function:

int Account::getnextfreeslot ( ) const

Definition at line 272 of file account.cpp.

References PolConfig::character_slots, characters_, and config.

Referenced by AccountObjImp::call_method_id().

+ Here is the caller graph for this function:

int Account::numchars ( ) const

Definition at line 263 of file account.cpp.

References PolConfig::character_slots, characters_, and config.

Referenced by delete_account().

+ Here is the caller graph for this function:

const string Account::password ( ) const

Definition at line 188 of file account.cpp.

References password_.

Referenced by login2(), and loginserver_login().

+ Here is the caller graph for this function:

const string Account::passwordhash ( ) const

Definition at line 193 of file account.cpp.

References passwordhash_.

Referenced by AccountObjImp::get_member_id(), login2(), and loginserver_login().

+ Here is the caller graph for this function:

void Account::set_character ( int  index,
Character chr 
)

Definition at line 173 of file account.cpp.

References characters_.

Referenced by AccountObjImp::call_method_id(), ClientCreateChar(), ClientCreateChar70160(), ClientCreateCharKR(), createchar2(), and Character::readCommonProperties().

+ Here is the caller graph for this function:

void Account::set_password ( std::string  newpass) [inline]

Definition at line 58 of file account.h.

References password_.

Referenced by login2(), and loginserver_login().

+ Here is the caller graph for this function:

void Account::set_passwordhash ( std::string  newpass) [inline]

Definition at line 59 of file account.h.

References passwordhash_.

const string Account::uo_expansion ( ) const

Definition at line 198 of file account.cpp.

References AOS, HSA, KR, LBR, ML, SA, SE, T2A, and uo_expansion_.

Referenced by AccountObjImp::get_member_id(), and writeto().

+ Here is the caller graph for this function:

const unsigned short Account::uo_expansion_flag ( ) const

Definition at line 214 of file account.cpp.

References uo_expansion_.

Referenced by send_feature_enable().

+ Here is the caller graph for this function:

void Account::writeto ( std::ostream &  os)

Friends And Related Function Documentation

friend class AccountObjImp [friend]

Definition at line 59 of file account.h.


Member Data Documentation

bool Account::banned_ [private]

Definition at line 70 of file account.h.

Referenced by banned(), AccountObjImp::call_method_id(), readfrom(), and writeto().

Definition at line 72 of file account.h.

Referenced by default_privlist(), readfrom(), and writeto().

bool Account::enabled_ [private]

Definition at line 69 of file account.h.

Referenced by AccountObjImp::call_method_id(), enabled(), readfrom(), and writeto().

std::string Account::name_ [private]

Definition at line 65 of file account.h.

Referenced by AccountObjImp::call_method_id(), name(), readfrom(), and writeto().

Definition at line 75 of file account.h.

std::string Account::password_ [private]

Definition at line 66 of file account.h.

Referenced by AccountObjImp::call_method_id(), password(), readfrom(), set_password(), and writeto().

std::string Account::passwordhash_ [private]

Definition at line 71 of file account.h.

Referenced by AccountObjImp::call_method_id(), readfrom(), and writeto().

unsigned short Account::uo_expansion_ [private]

The documentation for this class was generated from the following files: