Atrinik Server  4.0
Functions
detector.c File Reference
#include <global.h>
#include <object.h>
#include <object_methods.h>
#include <pedestal.h>

Go to the source code of this file.

Functions

static int move_on_func (object *op, object *victim, object *originator, int state)
 
 OBJECT_TYPE_INIT_DEFINE (detector)
 

Detailed Description

Handles code for detectors.

Author
Alex Tokar

Definition in file detector.c.

Function Documentation

static int move_on_func ( object op,
object victim,
object originator,
int  state 
)
static

Triggered when an object moves moves off a square and when object moves onto a square.

Parameters
opThe object that wants to catch this event.
victimThe object moving.
originatorThe object that is the cause of the move.
state1 if the object is moving onto a square, 0 if moving off a square.

Definition at line 39 of file detector.c.

OBJECT_TYPE_INIT_DEFINE ( detector  )

Initialize the detector type object methods.

Definition at line 58 of file detector.c.