|
Atrinik Server 2.5
|
#include <global.h>Go to the source code of this file.
Functions | |
| static void | animate_turning (object *op) |
| static void | trigger_move (object *op, int state) |
| static objectlink * | get_button_links (object *button) |
| void | push_button (object *op) |
| void | update_button (object *op) |
| void | update_buttons (mapstruct *m) |
| void | use_trigger (object *op) |
| int | check_trigger (object *op, object *cause) |
| void | add_button_link (object *button, mapstruct *map, int connected) |
| void | remove_button_link (object *op) |
| int | get_button_value (object *button) |
| void | do_mood_floor (object *op) |
| object * | check_inv_recursive (object *op, const object *trig) |
| void | check_inv (object *op, object *trig) |
Buttons, gates, handles, etc related code.
Definition in file button.c.
| static void animate_turning | ( | object * | op | ) | [static] |
Function to search the inventory of a player and then based on a set of conditions, the square will activate connected items.
Monsters can't trigger this square (for now) Values are: last_sp = 1/0 obj/no obj triggers last_heal = 1/0 remove/don't remove obj if triggered
| op | Object to check. Must be a player. |
| trig | Trigger object that may be activated. |
Checks object and its inventory for specific item.
It will descend through containers to find the object.
| op | Object of which to search inventory |
| trig | What to search |
| void do_mood_floor | ( | object * | op | ) |
| static objectlink * get_button_links | ( | object * | button | ) | [static] |
Return the first objectlink in the objects linked to this one.
| button | Object to check. Must not be NULL. |
| int get_button_value | ( | object * | button | ) |
| void push_button | ( | object * | op | ) |
| void remove_button_link | ( | object * | op | ) |
| void update_button | ( | object * | op | ) |
Updates everything connected with the button object. After changing the state of a button, this function must be called to make sure that all gates and other buttons connected to the button react to the (eventual) change of state.
| op | The button object |
| void update_buttons | ( | mapstruct * | m | ) |
Updates every button on the map by calling update_button() for them.
| m | The map to update buttons for |
1.7.4