34 methods->
apply = NULL;
63 type_methods[ob_type].
apply = method;
72 type_methods[ob_type].
process = method;
81 type_methods[ob_type].
describe = method;
90 type_methods[ob_type].
examine = method;
99 type_methods[ob_type].
move_on = method;
108 type_methods[ob_type].
trigger = method;
method_ret(* apply_func)(object *, object *, int)
Typedefs for ob_methods.
This struct stores function pointers for actions that can be done to objects.
void register_describe(int ob_type, describe_func method)
Registers the describe method for the given type.
void register_examine(int ob_type, examine_func method)
Registers the examine method for the given type.
Try to find a fire/heat source to light this when applied.
method_ret(* trigger_func)(object *, object *, int)
apply_func apply
The apply method.
void register_move_on(int ob_type, move_on_func method)
Registers the move_on method for the given type.
Global type definitions and header inclusions.
method_ret(* process_func)(object *)
void register_process(int ob_type, process_func method)
Registers the process method for the given type.
ob_methods type_methods[OBJECT_TYPE_MAX]
Registered method handlers.
void(* describe_func)(const object *, const object *, int use_media_tags, char *buf, size_t size)
void init_ob_types(ob_methods *base_type)
Initializes the object system.
move_on_func move_on
The move_on method.
static ob_methods base_type
void init_ob_method_struct(ob_methods *methods, ob_methods *fallback)
Initializes a ob_methods struct.
method_ret(* examine_func)(const object *, const object *, int use_media_tags, char *buf, size_t size)
trigger_func trigger
When something is triggered via a button.
void register_trigger(int ob_type, trigger_func method)
Registers the trigger method for the given type.
process_func process
The process method.
describe_func describe
The describe method.
method_ret(* move_on_func)(object *, object *, object *)
Object type functions and variables.
ob_methods * fallback
ob_method structure to fallback to
void register_apply(int ob_type, apply_func method)
Registers the apply method for the given type.