Crossfire Server, Trunk
account_char.h File Reference
+ This graph shows which files directly or indirectly include this file:

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)
 

Detailed Description

Characters associated with an account.n

Definition in file account_char.h.

Function Documentation

◆ account_char_remove()

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

Parameters
charsExisting list of characters for account.
pl_nameThe name of the character
Returns
Returns new list of characters for account.

Definition at line 313 of file account_char.cpp.

Referenced by account_add_player_cmd(), key_confirm_quit(), kill_player_permadeath(), and START_TEST().

+ Here is the caller graph for this function:

◆ make_perma_dead()

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.

Parameters
opThe player experiencing permadeath.
Returns
0 for success, 1 for failure

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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unmake_perma_dead()

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.

Parameters
accountThe account of the resurrected character.
playerThe name of the resurrected character.
Returns
0 for success, 1 for failure

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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: