Crossfire Server, Branch 1.12
R12190
|
Typedefs for ob_methods. More...
#include <ob_methods.h>
Data Fields | |
apply_func | apply |
The apply method. | |
describe_func | describe |
The describe method. | |
struct ob_methods * | fallback |
ob_method structure to fallback to | |
move_on_func | move_on |
The move_on method. | |
process_func | process |
The process method. | |
trigger_func | trigger |
When something is triggered via a button. |
Typedefs for ob_methods.
Also used in ob_types.c for storing the pointers temporarily. As a convention, callbacks parameters should begin with "ob_methods *context, object *ob", and return method_ret unless it needs to return something else.
This struct stores function pointers for actions that can be done to objects. It is currently just used for type-specific object code. Add new function pointers here when moving type specific code into the server/types/ *.c area. When adding function pointers here, be sure to add to init_ob_methods() in ob_types.c as necessary.
Definition at line 72 of file ob_methods.h.
The apply method.
Definition at line 73 of file ob_methods.h.
Referenced by init_ob_method_struct(), init_ob_methods(), ob_apply(), and register_apply().
The describe method.
Definition at line 75 of file ob_methods.h.
Referenced by init_ob_method_struct(), init_ob_methods(), ob_describe(), and register_describe().
struct ob_methods* ob_methods::fallback |
ob_method structure to fallback to
Definition at line 78 of file ob_methods.h.
Referenced by init_ob_method_struct(), ob_apply(), ob_describe(), ob_move_on(), ob_process(), and ob_trigger().
The move_on method.
Definition at line 76 of file ob_methods.h.
Referenced by init_ob_method_struct(), init_ob_methods(), ob_move_on(), and register_move_on().
The process method.
Definition at line 74 of file ob_methods.h.
Referenced by init_ob_method_struct(), init_ob_methods(), ob_process(), and register_process().
When something is triggered via a button.
Definition at line 77 of file ob_methods.h.
Referenced by init_ob_method_struct(), ob_trigger(), and register_trigger().