[Package Index | Mudlib Index | Effect Index]
Includes
This class includes the following files /include/player_handler.h and /include/login_handler.hMethod index
Public Functions
These are functions that everyone can access.
-
add_buggy_start
int add_buggy_start(string fname)
Add a filename to the array of buggy start positions to be removed.
Returns 1 if successful, -1 if the start position was already in the
list, or 0 for an error.
- Parameters:
fname - The filename of the room. '.c' will be stripped.
- Returns:
The integer success code.
-
delete_buggy_start
int delete_buggy_start(string fname)
Remove a filename from the array of buggy start positions.
Returns 1 if successful, -1 if the start position was not in the list,
or 0 for an error.
- Parameters:
fname - The filename of the room. '.c' will be stripped.
- Returns:
The integer success code.
-
list_buggy_starts
string * list_buggy_starts()
Get a list of all the currently registered buggy start positions.
- Returns:
The list of filenames.
-
load_file
void load_file()
-
login_callback
void login_callback(string player,
string type)
This is the callback function registered with the login handler. It
takes two arguments: the player and the type of login event. It checks
a property on the player so that it doesn't process the list of buggy
starts once for each player every single time they log in.
- Parameters:
player - the player's name to check.
type - the type of login event, as defined in .
-
remove_buggy_starts
void remove_buggy_starts(object player)
Process a player and remove start positions as required.
- Parameters:
player - The player object to check.