|
|
[Package Index | Mudlib Index | Effect Index]
File /global/start_position.c
This file contains all the start position related code. It sets up
and controls the start location of the player. This was split off from
the main player code by Pinkfish in April 1998.See also: /global/player.c Written by Pinkfish
Inherits
This class inherits the following classes /std/basic/virtual_quit_control.cIncludes
This class includes the following files /include/config.h and /include/playerinfo.hMethod index
- add_start(string, string)
This method will add a new start location to the player.
- check_last_pos()
This method figured out what the last saved position was and sets it
on the player.
- inform_entered_game()
This method handles informing people that the player has entered the
game.
- inform_reconnect_game()
THis method is called to inform people that someone has just reconnected.
- move_to_start_pos()
This method moves the player to the last saved position.
- query_last_pos()
This method returns the last saved position of the player.
- query_saved_co_ords()
This method returns the co-ordinates of the room in which the player
last saved.
- query_start_pos()
This method returns the starting location of the player.
- query_starts()
This method returns the current array of possible start positions on
the player.
- remove_start(string)
This method will remove a start location from the player.
- reset_starts()
This method resets the start locations back to an empty array.
- set_last_pos(string)
This method sets the current start location.
- set_start_location(string)
This method sets the start location of the player.
Public Functions
These are functions that everyone can access.
.
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.
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.
|