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

Go to the source code of this file.

Functions

static int move_on_func (object *op, object *victim, object *originator, int state)
 
static int trigger_func (object *op, object *cause, int state)
 
 OBJECT_TYPE_INIT_DEFINE (director)
 

Detailed Description

Handles code for directors.

Author
Alex Tokar

Definition in file director.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 38 of file director.c.

OBJECT_TYPE_INIT_DEFINE ( director  )

Initialize the director type object methods.

Definition at line 78 of file director.c.

static int trigger_func ( object op,
object cause,
int  state 
)
static

An object is triggered by another one.

Parameters
opThe object being triggered.
causeThe object that is the cause of the trigger.
stateTrigger state.

Definition at line 60 of file director.c.