|
Pol
Rev 533
|
#include <account.h>
Inheritance diagram for Account:
Collaboration diagram for Account: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 |
| Character * | get_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 | |
| Character * | active_character |
Private Attributes | |
| bool | banned_ |
| vector< CharacterRef > | characters_ |
| 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 |
| 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:| 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:| Character * Account::get_character | ( | int | index | ) |
Definition at line 168 of file account.cpp.
References characters_.
Referenced by AccountObjImp::call_method_id(), char_select(), Character::charindex(), ClientCreateChar(), ClientCreateChar70160(), ClientCreateCharKR(), handle_delete_character(), Character::readCommonProperties(), send_start(), and Character::~Character().
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:| const char * Account::name | ( | ) | const |
Definition at line 183 of file account.cpp.
References name_.
Referenced by acct_check(), AccountObjImp::call_method_id(), char_select(), client_io_thread(), ClientCreateChar(), ClientCreateChar70160(), ClientCreateCharKR(), delete_account(), delete_character(), AccountObjImp::get_member_id(), EClientRefObjImp::get_member_id(), Character::get_script_member_id(), gumpbutton_handler(), handle_menu_selection(), handle_rename_char(), handle_selcolor(), handle_target_cursor(), handle_textentry(), handle_unicode_prompt(), handle_unknown_packet(), kill_disconnected_clients(), login2(), loginserver_login(), Character::printProperties(), process_data(), start_packetlog(), Client::status(), textcmd_startlog(), and writeto().
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::readfrom | ( | ConfigElem & | elem | ) |
Definition at line 42 of file account.cpp.
References accounts_txt_dirty, banned_, PropertyList::clear(), CmdLevel::cmdlevel, config, convert_uo_expansion(), default_cmdlevel_, default_privs_, enabled_, find_cmdlevel(), ConfigElem::has_prop(), MD5_Encrypt(), name_, password_, passwordhash_, props_, StringSet::readfrom(), PropertyList::readProperties(), ConfigElem::remove_bool(), ConfigElem::remove_string(), PolConfig::retain_cleartext_passwords, ConfigElem::throw_error(), and uo_expansion_.
Referenced by Account(), and reread_account().
Here is the call graph for this function:
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 | ) |
Definition at line 79 of file account.cpp.
References banned_, cmdlevels2, config, default_cmdlevel_, default_privs_, StringSet::empty(), enabled_, StringSet::extract(), name_, password_, passwordhash_, pf_endl, PropertyList::printProperties(), props_, PolConfig::retain_cleartext_passwords, uo_expansion(), and uo_expansion_.
Referenced by duplicate_account(), and write_account_data().
Here is the call graph for this function:
Here is the caller graph for this function:| void Account::writeto | ( | ConfigElem & | elem | ) | const |
Definition at line 112 of file account.cpp.
References ConfigElem::add_prop(), banned_, cmdlevels2, config, default_cmdlevel_, default_privs_, StringSet::empty(), enabled_, StringSet::extract(), name(), name_, password_, passwordhash_, PropertyList::printProperties(), props_, PolConfig::retain_cleartext_passwords, uo_expansion(), and uo_expansion_.
Here is the call graph for this function:friend class AccountObjImp [friend] |
Definition at line 45 of file account.h.
Referenced by AccountObjImp::call_method_id(), char_select(), ClientCreateChar(), ClientCreateChar70160(), ClientCreateCharKR(), handle_delete_character(), Client::PreDelete(), ~Account(), and Character::~Character().
bool Account::banned_ [private] |
Definition at line 70 of file account.h.
Referenced by banned(), AccountObjImp::call_method_id(), readfrom(), and writeto().
vector<CharacterRef> Account::characters_ [private] |
Definition at line 64 of file account.h.
Referenced by Account(), clear_character(), get_character(), getnextfreeslot(), numchars(), set_character(), and ~Account().
unsigned char Account::default_cmdlevel_ [private] |
Definition at line 73 of file account.h.
Referenced by AccountObjImp::call_method_id(), default_cmdlevel(), AccountObjImp::get_member_id(), readfrom(), and writeto().
StringSet Account::default_privs_ [private] |
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().
StringSet Account::options_ [private] |
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 67 of file account.h.
Referenced by AccountObjImp::call_method_id(), passwordhash(), readfrom(), set_passwordhash(), and writeto().
PropertyList Account::props_ [private] |
Definition at line 71 of file account.h.
Referenced by AccountObjImp::call_method_id(), readfrom(), and writeto().
unsigned short Account::uo_expansion_ [private] |
Definition at line 68 of file account.h.
Referenced by AccountObjImp::call_method_id(), readfrom(), uo_expansion(), uo_expansion_flag(), and writeto().