|
|
[Package Index | Mudlib Index | Effect Index]
Includes
This class includes the following files /include/refresh.h, /d/am/include/amcw.h, /include/player_handler.h and /include/login_handler.hClass Index
Method index
- add_crime(string, int, string, string)
Adds a crime to the criminal's record.
- add_temporary_crime(string, int, string, string)
Adds a temporary crime to a criminal's record.
- banish_person(string, int)
This function adds a player as banished.
- banish_person_suspend(string)
This function supends (removes) a player's banishment (to be used when the
case is appealed).
- clear_crimes(string)
Wipes the entire "permanent" criminal record of a player or NPC.
- clear_temporary_crimes(string)
Clears all the temporary crimes for a player or NPC.
- is_banished(string)
- player_delete(string, int)
This is the function called by the login-handler when a player is deleted
so that a potential criminal-record can be erased as well.
- player_login(string, string)
This is the function called by the login-handler when a player logs in
so that a potential criminal-record can be loaded.
- player_netdead(string, string)
- player_reconnect(string, string)
- player_refresh(object, int)
This is the function called by the login-handler when a player refreshes
so that a potential criminal-record can be cleared.
- query_all_criminals()
This returns all the criminals that are currently being sought.
- query_banished()
This function returns the names of all banished players and also deletes
banishments which are over from the handler.
- query_banished_time(string)
- query_city_gate(string)
- query_crimes(string, int)
Returns all the crimes a player or NPC is guilty of or those that have been
recorded before a given time, if the last_update-parameter is specified.
- query_crimes_long(string)
Returns an array with the elaborate descriptions of all crimes a player or
NPC is known to have committed.
- query_criminal(string, int)
Checks whether the specified player (or NPC) is a known criminal.
- query_criminals()
This function returns the names of all online criminals with permanent
records.
- query_prison_for(string)
Queries the prison for a watch-district.
- query_prisons()
This function returns the prisons registerd with the handler.
- query_registered_watchmen()
This function returns the registered watchmen-objects.
- query_temp_criminals()
This function returns the names of all online criminals with temporary
records.
- query_total_severity(string)
Returns the severity-rating of all the crimes a criminal committed.
- register_watchman(object)
This function is used to register a watchman-object for reinforcement issues.
- remove_temporary_crime(string, string)
Removes a temporary crime from a criminal's record.
- save_crimes()
Saves the entire contents of the _criminals-mapping to the respective
files.
- save_this_criminal(string)
Function that saves a criminal's record and removes him from the mapping
(can for instance be used if the player logs off).
- set_gate_for(string, string)
- set_prison_for(string, string)
This function is used to assign a prison to a given zone.
- unregister_watchman(object)
This function is used to unregister a watchman-object when it dies.
Public Functions
These are functions that everyone can access.
.
varargs int add_crime(string criminal,
int severity,
string short,
string long)
Adds a crime to the criminal's record. The time is recorded automatically.
- Parameters:
criminal - the name of the criminal
severity - the severity of the crime (1 to 5, 5 being the highest)
short - a short description of the crime
long - a longer description of the crime, if desired
- Returns:
1 on success, 0 on failure
varargs int add_temporary_crime(string criminal,
int severity,
string short,
string long)
Adds a temporary crime to a criminal's record.
|