Crossfire Server, Trunk
|
Go to the source code of this file.
Data Structures | |
struct | account_char_struct |
struct | account_chars_struct |
Typedefs | |
typedef struct account_char_struct | Account_Char |
typedef struct account_chars_struct | Account_Chars |
Functions | |
void | account_char_remove (Account_Chars *chars, const char *pl_name) |
int | make_perma_dead (object *op) |
int | unmake_perma_dead (char *account, char *player) |
Characters associated with an account.n
Definition in file account_char.h.
typedef struct account_char_struct Account_Char |
One character in an account.
typedef struct account_chars_struct Account_Chars |
Structure handling character information for an account. Its fields should never be modified directly.
void account_char_remove | ( | Account_Chars * | chars, |
const char * | pl_name | ||
) |
This removes a character on this account. This is typically used when a character has been deleted, and not for general cleanup
chars | Existing list of characters for account. |
pl_name | The name of the character |
Definition at line 328 of file account_char.c.
Referenced by account_add_player_cmd(), key_confirm_quit(), and START_TEST().
int make_perma_dead | ( | object * | op | ) |
This will edit the character account information so that the character that just died in permadeath will be listed as such in the accounts file.
op | The player experiencing permadeath. |
Definition at line 404 of file account_char.c.
References curse_on_apply::ac, account_char_free(), account_char_load(), account_char_save(), socket_struct::account_name, account_chars_struct::chars, get_player(), give::op, and pl::socket.
Referenced by dead_player().
int unmake_perma_dead | ( | char * | account, |
char * | player | ||
) |
This will edit the character account information so that the character that was just resurrected in permadeath will be listed as such in the accounts file.
account | The account of the resurrected character. |
player | The name of the resurrected character. |
Definition at line 446 of file account_char.c.
References curse_on_apply::ac, account_char_free(), account_char_load(), account_char_save(), and account_chars_struct::chars.
Referenced by resurrect_player().