Atrinik Server  4.0
Functions
sign.c File Reference
#include <global.h>
#include <toolkit/packet.h>
#include <plugin.h>
#include <player.h>
#include <object.h>
#include <object_methods.h>
#include <check_inv.h>

Go to the source code of this file.

Functions

static int apply_func (object *op, object *applier, int aflags)
 
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 (sign)
 

Detailed Description

Handles code related to signs.

Author
Alex Tokar

Definition in file sign.c.

Function Documentation

static int apply_func ( object op,
object applier,
int  aflags 
)
static

Applies an object.

Parameters
opThe object to apply.
applierThe object that executes the apply action.
aflagsSpecial (always apply/unapply) flags.

Definition at line 42 of file sign.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 165 of file sign.c.

OBJECT_TYPE_INIT_DEFINE ( sign  )

Initialize the sign type object methods.

Definition at line 230 of file sign.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 175 of file sign.c.