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

Go to the source code of this file.

Functions

static int ranged_fire_func (object *op, object *shooter, int dir, double *delay)
 
 OBJECT_TYPE_INIT_DEFINE (skill)
 

Detailed Description

Handles code for skills.

Author
Alex Tokar

Definition in file skill.c.

Function Documentation

OBJECT_TYPE_INIT_DEFINE ( skill  )

Initialize the skill type object methods.

Definition at line 52 of file skill.c.

static int ranged_fire_func ( object op,
object shooter,
int  dir,
double *  delay 
)
static

Used to fire a ranged weapon, eg, a bow firing arrows, throwing weapons/potions, firing wands/rods, etc.

Parameters
opThe weapon being fired (bow, wand, throwing object).
shooterWho is doing the firing.
dirDirection to fire into.
[out]delayIf non-NULL, will contain delay caused by this action.
Returns
One of Object method return values.

Definition at line 38 of file skill.c.