|
|
[Package Index | Mudlib Index | Effect Index]
File /obj/handlers/wizard_orders.c
Each element of wizard_details contains the details for the
corresponding wizard. These details are:
wizard's level, a number from 0 to 8
wizard's time of advancement, a number
wizard's rating, a number
This will initialize the variables in the handler and tidy the
ordersSee also: tidy_order
.c Inherits
This class inherits the following classes /std/object.cMethod index
- add_wizard(string, string)
Add a wizard to an order.
- fill_vacancies(string)
This will fill the spaces cleaned out by the cleanup functions.
- find_wizard(string)
This function will find any wizard regardless of which order they are in.
- get_data_file(string)
Checks to see if the order entered is a valid order.
- init_data(string)
Called by get_data_file
resets the values of wizard_details and clears the cache of
wizards remembered to make typing 'who wizards' less memory
intensive.
- query_capacities(string)
List how many spots are availible for wizards to occupy in a
given order.
- query_capacity(string, int)
List how many spots are availible for wizards to occupy in a given
order, at a given level.
- query_occupancies(string)
This method returns the number of wizards at each level in a given order
- query_occupiers(string, int)
This method returns the wizards by name at the specified level in a given
order.
- query_order_name(string)
Function to find out the full name of an order.
- query_order_room(string)
An order can have a room that is informed when a wizard is promoted or
demoted.
- query_orders()
List all the orders.
- query_wizard_details(string)
Displays the contents of the wizard_details array.
- query_wizard_level(string, string)
Returns the wizard's order level if you know the order and the wizard
- query_wizard_rating(string, string)
Returns the wizard's rating with the order and the wizard
- query_wizard_time(string, string)
Returns the time at which the wizard last died or was demoted.
- query_wizards(string)
Lists all the wizards in an order.
- remove_wizard(string, string)
Remove a wizard from an order.
- save_data_file(string)
Saves the data file for the order.
- set_capacity(string, int, int)
Change the number of spots availible for wizards to occupy in a given
order.
- set_order_name(string, string)
Set the full name of the order.
- set_order_room(string, string)
Set the orders room.
- set_wizard_rating(string, string, int)
Set the rating of a given wizard.
- tidy_order(string, int)
This function is called by create() to tidy the order.
- wizard_died(string, string)
Clean up function!
Public Functions
These are functions that everyone can access.
.
int add_wizard(string order,
string wizard)
Add a wizard to an order. This will not add a wizard to the guild.
- Parameters:
order - the short form of the order name.
wizard - the wizard's name
- Returns:
0 on failure, 1 on success.
void fill_vacancies(string order)
This will fill the spaces cleaned out by the cleanup functions. It will
move the array of wizards upwards to fill the empty spots and place those
who were on the top on the bottom of the list.
occupancies is an array of the number of spots available in the given order
|