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

Go to the source code of this file.

Functions

static int apply_func (object *op, object *applier, int aflags)
 
 OBJECT_TYPE_INIT_DEFINE (compass)
 

Variables

static const char *const direction_names []
 

Detailed Description

Handles code related to compasses.

Author
Alex Tokar

Definition in file compass.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 46 of file compass.c.

OBJECT_TYPE_INIT_DEFINE ( compass  )

Initialize the compass type object methods.

Definition at line 64 of file compass.c.

Variable Documentation

const char* const direction_names[]
static
Initial value:
= {
"north", "northeast", "east", "southeast",
"south", "southwest", "west", "northwest",
}

String representations of the in-game directions.

Definition at line 39 of file compass.c.