|
|
[Package Index | Mudlib Index | Effect Index]
File /global/player.c
The main player object. Does all the player related stuff.Written by Pinkfish Started December 1991
Inherits
This class inherits the following classes /global/path.c, /global/more_file.c, /global/pweath.c, /global/finger.c, /global/start_position.c, /global/guild-race.c, /global/psoul.c, /global/line_ed.c, /global/family.c, /std/living/living.c, /global/spells.c, /global/log.c, /global/more_string.c and /global/events.cIncludes
This class includes the following files /include/clubs.h, /include/bounty.h, /include/board.h, /include/group_handler.h, /include/db.h, /include/refresh.h, /include/weather.h, /include/top_ten_tables.h, /include/playtesters.h, /include/quest_handler.h, /include/player_handler.h, /include/drinks.h, /include/am_time.h, /include/skills.h, /include/mail.h, /include/command.h, /include/log.h, /include/login.h, /include/living.h, /include/library.h, /include/config.h, /include/playerinfo.h, /include/error_handler.h, /include/nroff.h, /include/tune.h, /include/player.h, /include/login_handler.h, /include/guilds.h and /include/deity.hClass Index
Method index
- adjust_deaths(int)
This method changes the number of times the player has died.
- adjust_max_deaths(int)
Changes the current number of maxium deaths.
- allow_save()
This method allows the player to save again after they have been
disallowed.
- check_dark(int)
Can the player see?
- disallow_save()
This method stops the player from being able to save.
- do_load_auto()
Starts the autoloading process.
- do_quit()
quits the player.
- examine(string)
Forces the player to examine something.
- extra_score()
This method returns any extra information associated with the score.
- glance(string)
Force the player to glance.
- heart_beat()
The main heart beat function.
- idle_out()
Checks to see if they have idled out.
- look_me(string)
Force the player to look.
- move_player_to_start(string, int, string, string, int)
This method is called from within the login code to start up the
new player, set their name and move them into the correct
location on the mud.
- net_dead()
Called when the player goes net dead.
- query_activity_counter()
Return the current value of this players activity_counter
(used for debugging)
- query_cap_name()
This method returns the current capitalised name of the player.
- query_creator()
This method returns if the object is a creator or not.
- query_deaths()
This method returns the number of times the player has died.
- query_last_log_on()
This method returns the time at which the player last logged on.
- query_level()
Returns the players level.
- query_mature()
This method determins if the player is mature or not yet.
- query_max_deaths()
Returns the maxium number of deaths.
- query_monitor()
Is rthe monitor turned on?
- query_no_logins()
This method returns the number of times the player has logged onto
Discworld.
- query_object_type(object)
This method returns the one letter object type which is used in the
finger command to display the type of object.
- query_prevent_shadow(object)
Prevent the object from shadowing us?
- query_refresh_time()
This method returns the time at which the player last refreshed.
- query_save_inhibit()
This method returns the value of the disallowing save variable.
- query_sight_levels()
This returns the sight values for the race/player.
- query_snoopee()
Returns the object snooping us.
- query_start_time()
This is the date on which the character was started.
- query_time_on()
The amount of time on line.
- query_title()
This method returns the list of titles associated with this player.
- query_titles()
This method returns the mapping of all the title associated with this
player.
- query_wizard()
- quit()
A forced quit.
- quit_alt(int)
This is the quit code called by the command 'quit'
- remove_ghost()
This method removes the ghost from the player.
- remove_title(string)
This method removes the title of the given type from the title mapping.
- restart_heart_beat()
Restarts their heartbeat if it has got turned off for some reason.
- run_away()
Called when the player wimpys out of a place.
- save()
This method is deprecated.
- save_me()
Saves the player.
- save_with_auto_load(mixed)
- second_life()
This method is called when the player dies.
- set_max_deaths(int)
Sets the maximum number of deaths.
- set_monitor(int)
Set the hit point minitor.
- set_title(string, string)
This method sets the current title type to be of a certain name.
- toggle_wimpy(string)
This method changes the current value of the wimpy variables.
- write_prompt()
Public Functions
These are functions that everyone can access.
.
void adjust_deaths(int i)
This method changes the number of times the player has died. This
can only be positive.
int adjust_max_deaths(int i)
Changes the current number of maxium deaths. This adjust
the number of times a player can die before they are totaly dead.
- Parameters:
i - the amount of deaths to adjust by, must be +ve
- Returns:
the current total maximum deaths
void allow_save()
This method allows the player to save again after they have been
disallowed.
|