Crossfire Server, Trunk  R20513
Functions
teleporter.c File Reference

The implementation of teleporter objects. More...

#include <global.h>
#include <ob_methods.h>
#include <ob_types.h>
#include <sounds.h>
#include <sproto.h>
Include dependency graph for teleporter.c:

Go to the source code of this file.

Functions

void init_type_teleporter (void)
 Initializer for the teleporter object type. More...
 
static void move_teleporter (object *op)
 Move function for teleporter objects. More...
 
static method_ret teleporter_type_process (ob_methods *context, object *op)
 Processes a teleporter. More...
 
static method_ret teleporter_type_trigger (ob_methods *context, object *op, object *cause, int state)
 A teleporter is triggered. More...
 

Detailed Description

The implementation of teleporter objects.

Definition in file teleporter.c.

Function Documentation

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().

Here is the call graph for this function:

Here is the caller graph for this function:

static void move_teleporter ( object op)
static

Move function for teleporter objects.

Parameters
opteleporter.

Definition at line 51 of file teleporter.c.

References obj::above, enter_exit(), EVENT_TRIGGER, execute_event(), EXIT_PATH, EXIT_X, EXIT_Y, FABS, FLAG_IS_FLOOR, FLAG_WIZPASS, HEAD, llevError, LOG(), obj::map, MIN_ACTIVE_SPEED, obj::more, object_free_drop_inventory(), object_remove(), out_of_map(), PLAYER, QUERY_FLAG, SCRIPT_FIX_ALL, obj::speed, teleport(), TELEPORTER, transfer_ob(), and obj::type.

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 method_ret teleporter_type_process ( ob_methods context,
object op 
)
static

Processes a teleporter.

Parameters
contextThe method context
opThe teleporter to process
Return values
METHOD_OK

Definition at line 109 of file teleporter.c.

References METHOD_OK, and move_teleporter().

Referenced by init_type_teleporter().

Here is the call graph for this function:

Here is the caller graph for this function:

static method_ret teleporter_type_trigger ( ob_methods context,
object op,
object cause,
int  state 
)
static

A teleporter is triggered.

Parameters
contextIgnored.
opThe object being triggered
causeIgnored.
stateIgnored.
Return values
METHOD_OK

Definition at line 122 of file teleporter.c.

References METHOD_OK, and move_teleporter().

Referenced by init_type_teleporter().

Here is the call graph for this function:

Here is the caller graph for this function: