|
Crossfire Server
1.75.0
|
The implementation of the Trigger 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 | |
| void | init_type_trigger (void) |
| Initializer for the TRIGGER object type. More... | |
| static method_ret | trigger_type_apply (object *op, object *applier, int aflags) |
| Attempts to apply a trigger. More... | |
| static method_ret | trigger_type_process (object *op) |
| Processes a Trigger. More... | |
The implementation of the Trigger class of objects.
Triggers are things like handles in the game.
Definition in file trigger.cpp.
| void init_type_trigger | ( | void | ) |
Initializer for the TRIGGER object type.
Definition at line 40 of file trigger.cpp.
References register_apply(), register_process(), TRIGGER, trigger_type_apply(), and trigger_type_process().
Referenced by register_all_ob_types().
|
static |
Attempts to apply a trigger.
| op | The Trigger to apply |
| applier | The object attempting to apply the Trigger |
| aflags | Special flags (always apply/unapply) |
Definition at line 52 of file trigger.cpp.
References check_trigger(), draw_ext_info(), MSG_TYPE_APPLY, MSG_TYPE_APPLY_FAILURE, MSG_TYPE_APPLY_SUCCESS, NDI_UNIQUE, play_sound_map(), and SOUND_TYPE_GROUND.
Referenced by init_type_trigger().
|
static |
Processes a Trigger.
| op | The Trigger to process |
Definition at line 70 of file trigger.cpp.
References check_trigger(), METHOD_OK, NUM_ANIMATIONS, object_update(), SET_ANIMATION, object::stats, UP_OBJ_FACE, and living::wc.
Referenced by init_type_trigger().