Crossfire Server, Trunk
|
Go to the source code of this file.
Data Structures | |
struct | Account_Char |
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.
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 313 of file account_char.cpp.
Referenced by account_add_player_cmd(), key_confirm_quit(), kill_player_permadeath(), 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 379 of file account_char.cpp.
References curse_on_apply::ac, account_char_free(), account_char_load(), account_char_save(), Account_Chars::chars, get_player(), give::op, and altar_valkyrie::pl.
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 421 of file account_char.cpp.
References curse_on_apply::ac, account_char_free(), account_char_load(), account_char_save(), and Account_Chars::chars.
Referenced by resurrect_player().