[Package Index | Mudlib Index | Effect Index]

File /d/cwc/factions/faction.c

Faction system

Written by Dasquian

Started 15/12/02, a Cold Winter's Morn

Includes

This class includes the following files /include/player_handler.h

Method index

Public Functions

These are functions that everyone can access.

adjust_faction_data
int adjust_faction_data(string id,
                        string data_name,
                        int arg)
adjust_internal_data
int adjust_internal_data(string data_name,
                         int arg)
adjust_player_data
varargs int adjust_player_data(object p,
                               string name,
                               string data_name,
                               int arg,
                               int limit)
do_data_fading
int do_data_fading(string name,
                   int last)
faction_data_exists
int faction_data_exists(string id)
handle_data_fade
int handle_data_fade(string name)
internal_data_exists
int internal_data_exists(string data_name)
log_message
void log_message(string message)
new_player
int new_player(object player)
player_data_exists
int player_data_exists(string name)
purge_player
int purge_player(string name)
query_all_names
string * query_all_names()

This is ugly, and should be done very infrequently.
query_faction_data
mixed query_faction_data(string id,
                         string data_name)
query_faction_name
string query_faction_name()
query_full_faction_data
mapping query_full_faction_data()
query_full_internal_data
mapping query_full_internal_data()
query_internal_data
mixed query_internal_data(string data_name)
query_player_data
mixed query_player_data(string name,
                        string data_name)
query_save_file
string query_save_file()
query_ufid
string query_ufid()
set_faction
void set_faction(string name,
                 string id)
set_faction_data
int set_faction_data(string id,
                     string data_name,
                     mixed arg)
set_informed_creators
void set_informed_creators(string * names)
set_internal_data
int set_internal_data(string data_name,
                      mixed arg)
set_log_file
void set_log_file(string path)
set_player_data
int set_player_data(object p,
                    string name,
                    string data_name,
                    mixed arg)
set_save_file
void set_save_file(string path)

Protected Functions

These are functions that only objects inheriting the class can access.

load_file
void load_file()
save_file
void save_file()