Atrinik Server  4.0
Functions
duplicator.c File Reference
#include <global.h>
#include <arch.h>
#include <object_methods.h>

Go to the source code of this file.

Functions

static void duplicator_match_obj (object *op, object *tmp)
 
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 (duplicator)
 

Detailed Description

Handles code related to duplicators.

Author
Alex Tokar

Definition in file duplicator.c.

Function Documentation

static void duplicator_match_obj ( object op,
object tmp 
)
static

Try matching an object for duplicator.

Parameters
opDuplicator.
tmpThe object to try to match.

Definition at line 45 of file duplicator.c.

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 63 of file duplicator.c.

OBJECT_TYPE_INIT_DEFINE ( duplicator  )

Initialize the duplicator type object methods.

Definition at line 92 of file duplicator.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 77 of file duplicator.c.