|
Crossfire Server, Branch 1.12
R12190
|
The implementation of teleporter objects. More...
#include <global.h>#include <ob_methods.h>#include <ob_types.h>#include <sounds.h>#include <sproto.h>
Go to the source code of this file.
Functions | |
| void | init_type_teleporter (void) |
| Initializer for the teleporter object type. | |
| static void | move_teleporter (object *op) |
| Move function for teleporter objects. | |
| static method_ret | teleporter_type_process (ob_methods *context, object *op) |
| Processes a teleporter. | |
| static method_ret | teleporter_type_trigger (ob_methods *context, object *op, object *cause, int state) |
| A teleporter is triggered. | |
The implementation of teleporter objects.
Definition in file teleporter.c.
| void init_type_teleporter | ( | void | ) |
Initializer for the teleporter object type.
Definition at line 40 of file teleporter.c.
References register_process(), register_trigger(), TELEPORTER, teleporter_type_process(), and teleporter_type_trigger().
Referenced by register_all_ob_types().


| static void move_teleporter | ( | object * | op | ) | [static] |
Move function for teleporter objects.
| op | teleporter. |
Definition at line 51 of file teleporter.c.
References enter_exit(), EVENT_TRIGGER, execute_event(), EXIT_PATH, EXIT_X, EXIT_Y, FABS, FLAG_IS_FLOOR, FLAG_WIZPASS, free_object(), llevError, LOG(), MIN_ACTIVE_SPEED, out_of_map(), PLAYER, QUERY_FLAG, remove_ob(), SCRIPT_FIX_ALL, teleport(), TELEPORTER, and transfer_ob().
Referenced by teleporter_type_process(), and teleporter_type_trigger().


| static method_ret teleporter_type_process | ( | ob_methods * | context, |
| object * | op | ||
| ) | [static] |
Processes a teleporter.
| context | The method context |
| op | The teleporter to process |
| METHOD_OK |
Definition at line 111 of file teleporter.c.
References METHOD_OK, and move_teleporter().
Referenced by init_type_teleporter().


| static method_ret teleporter_type_trigger | ( | ob_methods * | context, |
| object * | op, | ||
| object * | cause, | ||
| int | state | ||
| ) | [static] |
A teleporter is triggered.
| context | Ignored. |
| op | The object being triggered |
| cause | Ignored. |
| state | Ignored. |
| METHOD_OK |
Definition at line 124 of file teleporter.c.
References METHOD_OK, and move_teleporter().
Referenced by init_type_teleporter().


1.7.6.1