 |
Crossfire Server, Trunk
1.75.0
|
Go to the documentation of this file.
53 ret = methods->
apply(op, applier, aflags);
91 char *
ob_describe(
const object *op,
const object *observer,
int use_media_tags,
char *
buf,
size_t size) {
96 methods->
describe(op, observer, use_media_tags,
buf, size);
117 ret = methods->
move_on(op, victim, originator);
139 ret = methods->
trigger(op, cause, state);
#define EVENT_APPLY
Object applied-unapplied.
method_ret ob_trigger(object *op, object *cause, int state)
An object is triggered by another one.
move_on_func move_on
The move_on method.
ob_methods type_methods[OBJECT_TYPE_MAX]
Registered method handlers.
int events_execute_object_event(object *op, int eventcode, object *activator, object *third, const char *message, int fix)
Execute an event on the specified object.
method_ret ob_move_on(object *op, object *victim, object *originator)
Makes an object move on top of another one.
ob_methods * fallback
ob_method structure to fallback to
apply_func apply
The apply method.
This struct stores function pointers for actions that can be done to objects.
char * ob_describe(const object *op, const object *observer, int use_media_tags, char *buf, size_t size)
Returns the description of an object, as seen by the given observer.
uint8_t type
PLAYER, BULLET, etc.
describe_func describe
The describe method.
char method_ret
Define some standard return values for callbacks which don't need to return any other results.
process_func process
The process method.
trigger_func trigger
When something is triggered via a button.
method_ret ob_process(object *op)
Processes an object, giving it the opportunity to move or react.
method_ret ob_apply(object *op, object *applier, int aflags)
Apply an object by running an event hook or an object method.