|
Atrinik Server 2.5
|
Go to the source code of this file.
Functions | |
| static void | register_global_event (const char *plugin_name, int event_nr) |
| static void | unregister_global_event (const char *plugin_name, int event_nr) |
| static atrinik_plugin * | find_plugin (const char *id) |
| object * | get_event_object (object *op, int event_nr) |
| CommArray_s * | find_plugin_command (const char *cmd) |
| void | display_plugins_list (object *op) |
| void | init_plugins () |
| void | init_plugin (const char *pluginfile) |
| void | remove_plugin (const char *id) |
| void | remove_plugins () |
| void | map_event_obj_init (object *ob) |
| void | map_event_free (map_event *tmp) |
| void | map_event_obj_deinit (object *ob) |
| int | trigger_map_event (int event_id, mapstruct *m, object *activator, object *other, object *other2, const char *text, int parm) |
| void | trigger_global_event (int event_type, void *parm1, void *parm2) |
| int | trigger_event (int event_type, object *const activator, object *const me, object *const other, const char *msg, int parm1, int parm2, int parm3, int flags) |
Variables | |
| struct plugin_hooklist | hooklist |
| static atrinik_plugin * | plugins_list = NULL |
Handles the plugins code.
Definition in file plugins.c.
| void display_plugins_list | ( | object * | op | ) |
| static atrinik_plugin* find_plugin | ( | const char * | id | ) | [static] |
| CommArray_s* find_plugin_command | ( | const char * | cmd | ) |
Browse through the inventory of an object to find first event that matches the event type of event_nr.
| op | The object to search in. |
| event_nr | The event number. |
| void init_plugin | ( | const char * | pluginfile | ) |
| void init_plugins | ( | ) |
Initializes plugins. Browses the plugins directory and calls init_plugin() for each plugin file found with the extension being PLUGIN_SUFFIX.
| void map_event_free | ( | map_event * | tmp | ) |
| void map_event_obj_deinit | ( | object * | ob | ) |
| void map_event_obj_init | ( | object * | ob | ) |
| static void register_global_event | ( | const char * | plugin_name, |
| int | event_nr | ||
| ) | [static] |
| void remove_plugin | ( | const char * | id | ) |
| int trigger_event | ( | int | event_type, |
| object *const | activator, | ||
| object *const | me, | ||
| object *const | other, | ||
| const char * | msg, | ||
| int | parm1, | ||
| int | parm2, | ||
| int | parm3, | ||
| int | flags | ||
| ) |
Handles triggering normal events like EVENT_ATTACK, EVENT_STOP, etc.
| event_type | The event type. |
| activator | Activator object. |
| me | Object the event object is in. |
| other | Other object. |
| msg | Message. |
| parm1 | First parameter. |
| parm2 | Second parameter. |
| parm3 | Third parameter. |
| flags | Event flags. |
| void trigger_global_event | ( | int | event_type, |
| void * | parm1, | ||
| void * | parm2 | ||
| ) |
| int trigger_map_event | ( | int | event_id, |
| mapstruct * | m, | ||
| object * | activator, | ||
| object * | other, | ||
| object * | other2, | ||
| const char * | text, | ||
| int | parm | ||
| ) |
Triggers a map-wide event.
| event_id | Event ID to trigger. |
| m | Map we're working on. |
| activator | Activator. |
| other | Some other object related to this event. |
| other2 | Another object related to this event. |
| text | String related to this event. |
| parm | Integer related to this event. |
| static void unregister_global_event | ( | const char * | plugin_name, |
| int | event_nr | ||
| ) | [static] |
| struct plugin_hooklist hooklist |
atrinik_plugin* plugins_list = NULL [static] |
1.7.4