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

Detailed Description

Characters associated with an account.n

Definition in file account_char.h.

Typedef Documentation

◆ Account_Char

One character in an account.

◆ Account_Chars

Structure handling character information for an account. Its fields should never be modified directly.

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 328 of file account_char.c.

Referenced by account_add_player_cmd(), key_confirm_quit(), 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 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().

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

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