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

Go to the source code of this file.

Functions

static bool cone_exists (object *op, mapstruct *m, int x, int y)
 
static void process_func (object *op)
 
static int move_on_func (object *op, object *victim, object *originator, int state)
 
 OBJECT_TYPE_INIT_DEFINE (cone)
 

Detailed Description

Handles code for cones.

Author
Alex Tokar

Definition in file cone.c.

Function Documentation

static bool cone_exists ( object op,
mapstruct m,
int  x,
int  y 
)
static

Check whether a part of the cone already exists on the specified position.

Parameters
opThe cone.
mMap.
xX position.
yY position.
Returns
Whether the cone exists.

Definition at line 52 of file cone.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 125 of file cone.c.

OBJECT_TYPE_INIT_DEFINE ( cone  )

Initialize the cone type object methods.

Definition at line 148 of file cone.c.

static void process_func ( object op)
static

Processes an object, giving it the opportunity to move or react.

Parameters
opThe object to process.

Definition at line 64 of file cone.c.