[Package Index | Mudlib Index | Effect Index]
File /obj/handlers/fairy_godmothers.c
Keep track of all the fairy godmothers. Make sure they don't do any
thing naughty. This also controls the costs for the godmother
service.Written by Pinkfish
Includes
This class includes the following files /include/panic.h, /include/cwc.h, /include/playerinfo.h and /include/config.hMethod index
Public Functions
These are functions that everyone can access.
-
do_hurry_up
void do_hurry_up()
Give the players a nudge if they are taking to long.
-
do_move
void do_move(object fairy)
-
do_panic_callout
void do_panic_callout(object godmother,
object ob)
-
do_startup
int do_startup(object panicer)
This method handles a player panicing.
This is the fairy godmother controller for panicing.
When someone panics it calls on this object to help fix them
up.
- Parameters:
panicer - the person panicing
- Returns:
0 if they were unmable to panic, 1 if they were
-
finish_panic
void finish_panic(object person,
int ok)
Called by the godmother when the person has completed their
paniced transaction.
- Parameters:
person - the person who paniced
ok - did they complete it ok?
-
free_godmothers
int free_godmothers()
Check to see if there are any free godmothers. Are you being
served?
- Returns:
1 if there is a free one, 0 if there is not
-
query_godmothers
object * query_godmothers()
Return an array of all the godmothers. This is the current set of
used godmothers.
- Returns:
an array of objects of godmothers