|
Public Methods |
| | cAccounts (void) |
| | Constructor of cAccount.
|
| | ~cAccounts (void) |
| | Destructor of cAccount.
|
| void | SetSaveRatio (int) |
| void | LoadAccounts () |
| | Reload all account.
|
| void | SaveAccounts () |
| | Save all account.
|
| void | CheckAccountFile () |
| | Check the account file status.
|
| int | Count () |
| | Get the number of account.
|
| SI32 | Authenticate (std::string username, std::string password) |
| | Get info about account by username and password.
|
| bool | AuthenticateRAS (std::string username, std::string password) |
| | Check if the user can use the RAS ( Remote Admin System ).
|
| ACCOUNT | CreateAccount (std::string username, std::string password) |
| | Create a new account.
|
| bool | IsOnline (ACCOUNT acctnum) |
| | Check if the Account is online.
|
| SERIAL | GetInWorld (ACCOUNT acctnum) |
| | Get char in game of given account.
|
| void | SetOnline (P_CHAR pc) |
| | Set Online the player.
|
| void | SetEntering (ACCOUNT acctnum) |
| | Account are loggin into.
|
| void | SetOffline (ACCOUNT acctnum) |
| | Set Offline the player.
|
| void | OnLogin (ACCOUNT acctnum, NXWSOCKET socket) |
| | Update account information.
|
| SI32 | verifyPassword (std::string username, std::string password) |
| | Verify a password, currently only needed by encryption due to two crypt versions returning a valid username, but one an invalid password.
|
| SI32 | ChangePassword (ACCOUNT acctnum, std::string password) |
| | Change the Password.
|
| void | AddCharToAccount (ACCOUNT acctnum, P_CHAR pc) |
| | Add given char to account.
|
| void | GetAllChars (ACCOUNT acctnum, NxwCharWrapper &sc) |
| | Get list of pg of this account.
|
| ACCOUNT | GetAccountByName (std::string name) |
| | Get an account from his name.
|
| cAccount * | GetAccount (ACCOUNT acctnumb) |
| | Get an account from his name.
|
| bool | RemoveAccount (std::string name) |
| | Delete an account.
|
Public Attributes |
| UI32 | lasttimecheck |
Private Methods |
| void | safeInsert (cAccount &acc) |
| | Safe insert info list.
|
| void | LoadAccount (ACCOUNT acctnumb, FILE *F) |
| | Reload the Account.
|
Private Attributes |
| ACCOUNT_LIST | acctlist |
| | All Account, with info.
|
| ACCOUNT_LIST_BY_NAME | accbyname |
| | All Account by name.
|
| UI32 | lastusedacctnum |
| UI32 | unsavedaccounts |
| UI32 | saveratio |