[Package Index | Mudlib Index | Effect Index]
See also:
/global/player.c
Written by Pinkfish
.
void add_start(string start_file, string start_desc)This method will add a new start location to the player. The description will be used in the starts command.
// NB: This should be done with a define :) player->add_start("/d/am/am/mendeddrum", "the mended drum");
void check_last_pos()This method figured out what the last saved position was and sets it on the player. This basicly sets the last saved postion.
void inform_reconnect_game()THis method is called to inform people that someone has just reconnected.
string query_last_pos()This method returns the last saved position of the player.
int * query_saved_co_ords()This method returns the co-ordinates of the room in which the player last saved.
string query_start_pos()This method returns the starting location of the player. This the location they will start at if the saved position does not work for some reason.
string * query_starts()This method returns the current array of possible start positions on the player.
void remove_start(string start_file)This method will remove a start location from the player.
// NB: This should be done with a define :) player->remove_start("/d/am/am/mendeddrum");
void reset_starts()This method resets the start locations back to an empty array.
void set_start_location(string start_file)This method sets the start location of the player.
// NB: This should be done with a define :) player->set_start_location("/d/am/am/mendeddrum");
void inform_entered_game()This method handles informing people that the player has entered the game.
void move_to_start_pos()This method moves the player to the last saved position. This should only be called in the startup sequence. If the last location could not be loaded, the the start position will be used.
void set_last_pos(string pos)This method sets the current start location.