|
|
[Package Index | Mudlib Index | Effect Index]
File /d/am/buildings/dysk_dev/inherits/theatre_control.c
An inherit for managerial rooms for Theatres.
@author Gin
@started 31/05/2002
Inherits
This class inherits the following classes .cIncludes
This class includes the following files /include/money.h, /include/shops/bank.h, /d/am/buildings/dysk_dev/inherits/path.h, /include/mail.h, /include/player_handler.h and /include/move_failures.hClass Index
Method index
- add_playwright(string, int)
This method is used to add a playwright to the theatre's list of
official playwrights.
- convert_file(string)
This method converts a save file for a script into an array
containing the author and title.
- do_accept()
This method accepts a script as valid for the theatre.
- do_add()
This method adds a script to the current lineup of scripts to be performed.
- do_collect()
This method is used to collect royalties for players
- do_demote(string, string)
This method is used to demote a manager back to playwright
- do_fine(string, string, string)
This method is used to fine a playwright of royalties.
- do_fire(string, string)
This method fires a playwright or manager.
- do_hire(string, int)
This method hires a person to the theatre, either as a playwright or
* manager.
- do_list(int)
This method lists the avaliable scripts.
- do_pay(string, string, string)
This method is used to pay a playwright a bonus.
- do_play()
This method plays a script for a manager.
- do_reject()
This method rejects a script, returning it to the owner.
- do_remove()
This method removes a script from the current lineup of scripts to be
performed.
- do_retrieve(int)
This method is used to retrieve a script in object form
- do_set(string, int, int)
This method sets the pay rat (in terms of a percentage of the takings of
takings for their plays) for a particular person, the default payrat, or
that for all the playwrights.
- do_transfer_ownership(string)
This method transfers control of the theatre to a new owner.
- do_view()
This method is used to view a script's file.
- employee_details(string)
This method returns details on an employee
- get_details(string)
This method gives a list of details on an employee, such as the level
at which they have been employed, the date on which they were employed,
their current royalties, plays approved and their pay percentage.
- is_hired(string)
This method is used to identify if someone is an employee
- is_owner(string)
This method is used to identify if someone is the owner of the theatre
- list_d_employees()
This method produces a detailed list of the employees
- list_employees()
this method lists all employees along with their levels within the
organisation
- list_managers()
This method produces a list of the managers
- pay_royalties(string, float)
This method pays royalties to the author of a play.
- query_owner()
This method returns the current owner of the theatre.
- reject_this_script(class h_script)
- return_script(object)
This method returns a script object to the theatre
- set_theatre_log(string)
- set_theatre_name(string, string)
This method sets the theatre name
- view_log()
This method displays the log file for the theatre.
- view_td()
This method gives a nice message with the details of the theatre
- write_scripts(class h_script *)
This method writes an array of scripts to the player.
Public Functions
These are functions that everyone can access.
.
void add_playwright(string name,
int level)
This method is used to add a playwright to the theatre's list of
official playwrights.
- Parameters:
name - The name of the person to add
level - The level at which they are to be added.
string * convert_file(string file)
This method converts a save file for a script into an array
containing the author and title.
@param file the file to convert
@return returns a 2-3 part array of author, title and number
int do_accept()
This method accepts a script as valid for the theatre.
int do_add()
This method adds a script to the current lineup of scripts to be performed.
int do_collect()
This method is used to collect royalties for players
int do_demote(string name,
string reason)
This method is used to demote a manager back to playwright
|