Crossfire Server, Trunk
gate.cpp File Reference
#include "global.h"
#include <stdlib.h>
#include "ob_methods.h"
#include "ob_types.h"
#include "sounds.h"
#include "sproto.h"
+ Include dependency graph for gate.cpp:

Go to the source code of this file.

Functions

static method_ret gate_type_process (object *op)
 
void init_type_gate (void)
 
static method_ret timed_gate_type_process (object *op)
 

Detailed Description

The implementation of the Gate and Timed Gate classes of objects.

Todo:
merge GATE and TIMED_GATE object types.

Definition in file gate.cpp.

Function Documentation

◆ gate_type_process()

◆ init_type_gate()

void init_type_gate ( void  )

Initializer for the gate object type.

Definition at line 35 of file gate.cpp.

References GATE, gate_type_process(), register_process(), TIMED_GATE, and timed_gate_type_process().

Referenced by register_all_ob_types().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ timed_gate_type_process()

static method_ret timed_gate_type_process ( object op)
static

Handle ob_process for all timed gate objects.

  • hp : how long door is open/closed
  • maxhp : initial value for hp
  • sp : 1 = open, 0 = close
    Parameters
    opThe timed gate that's being processed.
    Returns
    METHOD_OK
    Todo:
    Split function into more managable functions.

Definition at line 208 of file gate.cpp.

References gate_type_process(), METHOD_OK, object_update_speed(), and give::op.

Referenced by init_type_gate().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: