[Package Index | Mudlib Index | Effect Index]

File /obj/handlers/applications_handler.c

Applications handler @author Drakkos @started 30/01/2003

Includes

This class includes the following files /include/applications.h, /include/newbiehelpers.h, /include/player_handler.h, /include/playtesters.h, /include/mail.h, /include/playerinfo.h, /include/player.h, /include/library.h and /include/board.h

Method index

Public Functions

These are functions that everyone can access.

add_application
int add_application(string t,
                    string n,
                    string te,
                    string dom)

This method adds an application into the system.

Parameters:
t - the type of applicatioon to add
n - the name of the person applying
te - their text of the application
dom - the domain to apply to

Returns:
1 on success, 0 on failure


add_application_type
varargs void add_application_type(string t,
                                  int v,
                                  string b,
                                  int g,
                                  int q,
                                  int a,
                                  int ti,
                                  string * qu,
                                  string intro,
                                  string responsibility,
                                  int cre_level)

This method adds an application type into the system. The application type has a bunch of requirements that must be met before you can apply for the specified position.

Parameters:
t - the type of the application
v - the number of vouches required
b - the board to post applications to
g - the gp requirements
q - the guild level requirement
a - the age requirement
qu - the questions to ask
ti - the timeout
intro - the introductory test


application_requirements
string application_requirements(string type)

This method lists all the requirements to apply for the specific type.

Parameters:
type - the type of the application

Returns:
the application requirements


delete_application
int delete_application(string t,
                       string n)

Deletes an application from the system. @param name The name of the aplicant @param type The type of application. @return 1 for success, 0 for failure.
delete_vouch
int delete_vouch(string who,
                 string name,
                 string position)

This method deletes a vouch for a special person in the system.

Parameters:
who - the person doing the vouch
name - the person who was vouched
position - the position being vouched for


find_application
int find_application(string name,
                     string type)

Find a particular application. @param name The name of the candidate. @param type The type of application. @return the index of the candidate, or -1 if none found.
find_type
int find_type(string type)

Find a particular application type. @param type The type of application. @return the index of the type, or -1 if none found.
format_application
string format_application(int i)

This method formats the specified application for posting to the board.

Parameters:
i - the application id

Returns:
the formatted application


list_applications
string list_applications()

This method lists all the current applications.

Returns:
the list of current applications


list_applications_newbiehelpers
string list_applications_newbiehelpers()

This method returns the list of newbiehelpers who have applied to be a happy new newbie helper.
load_me
void load_me()

Loads the object.
make_vouch
int make_vouch(string t,
               string p,
               string n,
               string v)
number_of_vouches
int number_of_vouches(string name,
                      string type)

Returns the number of vouches a player has received for an application. @param i The index of the application. @return 1 for success, 0 for failure.
query_application_vouches
mapping query_application_vouches(string type,
                                  string name)

This method returns the vouches for the specified application.

Parameters:
type - the type of the application
name - the person who is applying


query_applications_accepted
int query_applications_accepted(string dom)

This checks to see if the domain is accepting applications at all.

Parameters:
dom - the domain to check

Returns:
1 if it is accepting


query_debug_types
mixed * query_debug_types()

This returns the entire types array, used for debug purposes only.
query_director_applications_accepted
int query_director_applications_accepted(string dom)

This checks to see if the domain is accepting applications at all.

Parameters:
dom - the domain to check

Returns:
1 if it is accepting


query_director_domain_status
mapping query_director_domain_status()

This method returns the status of the director domains.

Returns:
the domain lockout status


query_domain_status
mapping query_domain_status()

This method returns the status of the domain.

Returns:
the domain lockout status


query_intro_text
string query_intro_text(string type)

This returns the intro text for the specific application type.

Parameters:
type - the type to look for the intro text to

Returns:
the intro text.


query_questions
string * query_questions(string type)

This returns all the questions for the specific application type.

Parameters:
type - the type to look for the questions for

Returns:
the questions


query_responsibility
string query_responsibility(string type)

This method returns the responsability of the position.

Parameters:
type - the type to look for

Returns:
the responsability of the position


query_types
string * query_types()

This returns the various possible types of applications allowed.
query_vouch
string query_vouch(string t,
                   string p,
                   string n)

Query the vouch for a particular player in a particular category. @param t The type of application. @param p The name of the player. @param n The name of the voucher. @return the text of the vouch or 0 if none exists.
query_vouches_for_all
mapping query_vouches_for_all(string name)

This method finds all the vouches for the specified person, irrelevant of application.

Parameters:
name - the name of the person to find the vouches for


save_me
void save_me()

Saves the object.
toggle_domain_lock
int toggle_domain_lock(string dom)

Turns on and off a lock on the domain so that applications are suspended or allowed.

Parameters:
dom - the domain to be locked


valid_application
int valid_application(string name,
                      string type)

This method checks to see if the application is valid or not.

Parameters:
name - the name of the person being checked
type - the type of application being checked

Returns:
1 on success