Crossfire Server, Branch 1.12  R12190
Functions
gate.c File Reference

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

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

Go to the source code of this file.

Functions

static method_ret gate_type_process (ob_methods *context, object *op)
 Handle ob_process for all gate objects.
void init_type_gate (void)
 Initializer for the gate object type.
static method_ret timed_gate_type_process (ob_methods *context, object *op)
 Handle ob_process for all timed gate objects.

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.c.


Function Documentation

static method_ret gate_type_process ( ob_methods context,
object *  op 
) [static]

Handle ob_process for all gate objects.

Parameters:
contextThe method context
opThe gate that's being processed.
Returns:
METHOD_OK

Definition at line 51 of file gate.c.

References AT_PHYSICAL, CLEAR_FLAG, draw_ext_info_format(), dump_object(), find_free_spot(), FLAG_ALIVE, FLAG_BLOCKSVIEW, FLAG_CAN_ROLL, FLAG_NO_PICK, freearr_x, freearr_y, hit_player(), insert_ob_in_map(), llevError, LOG(), METHOD_OK, MOVE_ALL, MSG_TYPE_VICTIM, MSG_TYPE_VICTIM_WAS_HIT, NDI_UNIQUE, NUM_ANIMATIONS, PLAYER, PREFER_LOW, QUERY_FLAG, random_roll(), remove_ob(), SET_ANIMATION, SET_FLAG, stringbuffer_finish(), stringbuffer_new(), update_all_los(), update_ob_speed(), and update_object().

Referenced by init_type_gate(), and timed_gate_type_process().

Here is the call graph for this function:

Here is the caller graph for this function:

void init_type_gate ( void  )

Initializer for the gate object type.

Definition at line 40 of file gate.c.

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:

static method_ret timed_gate_type_process ( ob_methods context,
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:
    contextThe method context
    opThe timed gate that's being processed.
    Returns:
    METHOD_OK
    Todo:
    Split function into more managable functions.

Definition at line 198 of file gate.c.

References gate_type_process(), METHOD_OK, and update_ob_speed().

Referenced by init_type_gate().

Here is the call graph for this function:

Here is the caller graph for this function: