 |
Crossfire Server, Trunk
1.75.0
|
void register_examine(int ob_type, examine_func method)
Registers the examine method for the given type.
method_ret(* trigger_func)(object *, object *, int)
move_on_func move_on
The move_on method.
void register_apply(int ob_type, apply_func method)
Registers the apply method for the given type.
void register_move_on(int ob_type, move_on_func method)
Registers the move_on method for the given type.
method_ret(* process_func)(object *)
ob_methods type_methods[OBJECT_TYPE_MAX]
Registered method handlers.
void register_process(int ob_type, process_func method)
Registers the process method for the given type.
ob_methods * fallback
ob_method structure to fallback to
void init_ob_types(ob_methods *base_type)
Initializes the object system.
void(* describe_func)(const object *, const object *, int use_media_tags, char *buf, size_t size)
apply_func apply
The apply method.
This struct stores function pointers for actions that can be done to objects.
method_ret(* move_on_func)(object *, object *, object *)
describe_func describe
The describe method.
void register_trigger(int ob_type, trigger_func method)
Registers the trigger method for the given type.
method_ret(* examine_func)(const object *, const object *, int use_media_tags, char *buf, size_t size)
process_func process
The process method.
trigger_func trigger
When something is triggered via a button.
static ob_methods base_type
@ OBJECT_TYPE_MAX
Try to find a fire/heat source to light this when applied.
void init_ob_method_struct(ob_methods *methods, ob_methods *fallback)
Initializes a ob_methods struct.
void register_describe(int ob_type, describe_func method)
Registers the describe method for the given type.
method_ret(* apply_func)(object *, object *, int)
Typedefs for ob_methods.