[ Package Index | Mudlib Index | Effect Index ]

File /obj/clock.c

An inheritable clock object. This is used for proper clocks, if you need to create a watch use the watch object instead.

See also:
/obj/watch .c

Written by Ceres


Inherits

This class inherits the following classes std/object.c

Includes

This class includes the following files /include/am_time.h

Method index

 o chime(string, int)
Function to chime.
 o extra_look(object)
 o set_chimes(int, string)
setup chimes for this clock.
 o set_show_date()
Sets this clock to show the date as well as the tme.

Public Functions

These are functions that everyone can access.

.
 * chime
void chime(string chime_message,
           int type)
Function to chime. Overload this if you wish to have your own chime code.

Parameters:
chime_message - the message set with set_chimes.
See also:
set_chimes .c
 * extra_look
string extra_look(object thing)
 * set_chimes
void set_chimes(int num,
                string mess)
setup chimes for this clock.

Parameters:
num - 1 = every hour, 2 = every half hour, 3 = every quarter hour.
mess - The message to be displayed when the clock chimes.
 * set_show_date
void set_show_date()
Sets this clock to show the date as well as the tme.


Discworld MUD's distribution world wide web pages.
brought to you by
Cut Me Own Throat Dibbler's Sensational Sausages; buy one while they are hot.
File last modified: Thu, 18 Sep 2003 17:19:38 GMT

Lost? Try Discworld's home page.