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

Go to the source code of this file.

Functions

static void process_func (object *op)
 
 OBJECT_TYPE_INIT_DEFINE (swarm_spell)
 

Variables

static const int cardinal_adjust [9]
 
static const int diagonal_adjust [10]
 

Detailed Description

Handles code related to swarm spells.

Definition in file swarm_spell.c.

Function Documentation

OBJECT_TYPE_INIT_DEFINE ( swarm_spell  )

Initialize the swarm spell type object methods.

Definition at line 116 of file swarm_spell.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 50 of file swarm_spell.c.

Variable Documentation

const int cardinal_adjust[9]
static
Initial value:
= {
-3, -2, -1, 0, 0, 0, 1, 2, 3
}

Cardinal direction adjustments for swarm spells.

Definition at line 37 of file swarm_spell.c.

const int diagonal_adjust[10]
static
Initial value:
= {
-3, -2, -2, -1, 0, 0, 1, 2, 2, 3
}

Diagonal direction adjustments for swarm spells.

Definition at line 44 of file swarm_spell.c.