Crossfire Server, Trunk  1.75.0
teleporter.cpp File Reference
#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.cpp:

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 (object *op)
 Processes a teleporter. More...
 
static method_ret teleporter_type_trigger (object *op, object *cause, int state)
 A teleporter is triggered. More...
 

Detailed Description

The implementation of teleporter objects.

Definition in file teleporter.cpp.

Function Documentation

◆ init_type_teleporter()

void init_type_teleporter ( void  )

Initializer for the teleporter object type.

Definition at line 41 of file teleporter.cpp.

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:

◆ move_teleporter()

◆ teleporter_type_process()

static method_ret teleporter_type_process ( object op)
static

Processes a teleporter.

Parameters
opThe teleporter to process
Return values
METHOD_OK

Definition at line 126 of file teleporter.cpp.

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:

◆ teleporter_type_trigger()

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

A teleporter is triggered.

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

Definition at line 138 of file teleporter.cpp.

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: