|
Crossfire Server, Trunk
|
#include <global.h>#include <ob_methods.h>#include <ob_types.h>#include <sounds.h>#include <sproto.h>#include <string.h>
Include dependency graph for teleporter.c:Go to the source code of this file.
Functions | |
| void | init_type_teleporter (void) |
| static void | move_teleporter (object *op) |
| static method_ret | teleporter_type_process (object *op) |
| static method_ret | teleporter_type_trigger (object *op, object *cause, int state) |
The implementation of teleporter objects.
Definition in file teleporter.c.
| void init_type_teleporter | ( | void | ) |
Initializer for the teleporter object type.
Definition at line 41 of file teleporter.c.
References register_process(), register_trigger(), TELEPORTER, teleporter_type_process(), and teleporter_type_trigger().
Referenced by register_all_ob_types().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Move function for teleporter objects.
| op | teleporter. |
Definition at line 52 of file teleporter.c.
References enter_exit(), EVENT_TRIGGER, events_execute_object_event(), EXIT_PATH, EXIT_X, EXIT_Y, FABS, FLAG_IS_FLOOR, FLAG_MONSTER, FLAG_NO_PICK, FLAG_WIZPASS, HEAD, llevError, LOG(), obj::map, MIN_ACTIVE_SPEED, object_free_drop_inventory(), object_remove(), give::op, out_of_map(), PLAYER, QUERY_FLAG, SCRIPT_FIX_ALL, teleport(), TELEPORTER, Ice::tmp, and transfer_ob().
Referenced by teleporter_type_process(), and teleporter_type_trigger().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Processes a teleporter.
| op | The teleporter to process |
| METHOD_OK |
Definition at line 126 of file teleporter.c.
References METHOD_OK, move_teleporter(), and give::op.
Referenced by init_type_teleporter().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
A teleporter is triggered.
| op | The object being triggered |
| cause | Ignored. |
| state | Ignored. |
| METHOD_OK |
Definition at line 138 of file teleporter.c.
References METHOD_OK, move_teleporter(), give::op, quest::state, and nlohmann::detail::void().
Referenced by init_type_teleporter().
Here is the call graph for this function:
Here is the caller graph for this function: