[Package Index | Mudlib Index | Effect Index]

File /obj/handlers/script_handler.c

Returns an approximate running time for the script. *

Includes

This class includes the following files /include/room/theatre.h and /include/am_time.h

Method index

Public Functions

These are functions that everyone can access.

add_script
void add_script(string theatre,
                int approved,
                string title,
                class scene * scenes,
                string * characters,
                string * char_descs,
                string author,
                string * char_genders)
adjust_rating
void adjust_rating(int script,
                   string theatre,
                   int amt)
adjust_this_rating
void adjust_this_rating(class h_script skript,
                        int amt)
approve_script
void approve_script(int i,
                    string theatre)
approve_this_script
void approve_this_script(class h_script skript)
change_script_status
varargs void change_script_status(mixed script,
                                  int status,
                                  string theatre)
clear_scripts
void clear_scripts(string theatre)
clearup_scripts
void clearup_scripts()
convert_script
string convert_script(class scene * scenes)
get_random_script
class h_script get_random_script(string theatre)
get_script
class h_script get_script(int i,
                          string theatre)
query_int_script_length
int query_int_script_length(int i,
                            string theatre)
query_script_length
int query_script_length(class h_script ascript)
query_script_length_file
int query_script_length_file(string the_file)
query_script_time
int query_script_time(mixed script)
query_scripts
class h_script * query_scripts(string theatre,
                               int flag)

This returns all scripts for a particular theatre.

Parameters:
flag - determines if it should returned all [0], approved [1], unapproved [2], listed [3].


read_script
string read_script(string file,
                   int start_line,
                   int number_of_lines)

Reads a line from the specified script. Needed to prevent problems where files don't have access
reject_script
void reject_script(int i,
                   string theatre)
reject_this_script
void reject_this_script(class h_script skript,
                        string theatre)
remove_script
void remove_script(int i,
                   string theatre)
remove_this_script
void remove_this_script(class h_script skript)
restore_me
void restore_me()
unapprove_script
void unapprove_script(int i,
                      string theatre)
unapprove_this_script
void unapprove_this_script(class h_script skript)

Protected Functions

These are functions that only objects inheriting the class can access.

save_me
void save_me()