|
Crossfire Server, Branch 1.12
R12190
|
The implementation of the Clock class of objects. More...
#include <global.h>#include <ob_methods.h>#include <ob_types.h>#include <sounds.h>#include <sproto.h>
Go to the source code of this file.
Functions | |
| static method_ret | clock_type_apply (ob_methods *context, object *op, object *applier, int aflags) |
| Handles using a clock. | |
| void | init_type_clock (void) |
| Initializer for the CLOCK object type. | |
The implementation of the Clock class of objects.
Definition in file clock.c.
| static method_ret clock_type_apply | ( | ob_methods * | context, |
| object * | op, | ||
| object * | applier, | ||
| int | aflags | ||
| ) | [static] |
Handles using a clock.
| context | The method context |
| op | The clock to apply |
| applier | The object attempting to view the clock |
| aflags | Special flags (always apply/unapply) |
| METHOD_UNHANDLED | If the clock wasn't viewed by a player |
| METHOD_OK | If applier was a player |
Definition at line 50 of file clock.c.
References draw_ext_info_format(), get_tod(), _timeofday::hour, METHOD_OK, METHOD_UNHANDLED, _timeofday::minute, MSG_TYPE_APPLY, MSG_TYPE_APPLY_SUCCESS, NDI_UNIQUE, play_sound_player_only(), PLAYER, and SOUND_TYPE_ITEM.
Referenced by init_type_clock().


| void init_type_clock | ( | void | ) |
Initializer for the CLOCK object type.
Definition at line 37 of file clock.c.
References CLOCK, clock_type_apply(), and register_apply().
Referenced by register_all_ob_types().


1.7.6.1