[Package Index | Mudlib Index | Effect Index]

File /obj/handlers/special_day.c

Handle all the special day things. Like beards and such like.

Written by Pinkfish (changed into a handler by Ceres)

Includes

This class includes the following files /include/special_day.h, /include/player_handler.h, /include/move_failures.h, /include/login_handler.h and /include/armoury.h

Method index

Public Functions

These are functions that everyone can access.

am_day_stuff
void am_day_stuff(object who)

These ones are Discworld calendar special days. This bit was written by Deutha.

Parameters:
who - the person logging in


birthday_gifts
void birthday_gifts(object who)

Check to see if it is there birthday. This was wrtitten by Bil.

Parameters:
who - the person who might have abirthday


entering
void entering(string p_name,
              string type)

Called by the login handler for each player who enters the game. This does all the required testing for the various types of special days, like birthday, real day stuff and am day stuff.

Parameters:
p_name - the player entering
the - type of entering


is_special_day_at_time
string is_special_day_at_time(int t)
query_special_day
string query_special_day()

If it is a special day, return the type of special day.

Returns:
the name of the special day, or 0 if it is not a special day


real_day_stuff
void real_day_stuff(object who)

These are special days which occur based on the real world calendar. This bit was written by Pinkfish

Parameters:
who - the person who is logging on