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

Go to the source code of this file.

Functions

int common_object_apply (object *op, object *applier, int aflags)
 
static bool object_apply_item_check_type (object *op, object *tmp)
 
int object_apply_item (object *op, object *applier, int aflags)
 

Detailed Description

Apply-related functions.

Author
Alex Tokar

Definition in file apply.c.

Function Documentation

int common_object_apply ( object op,
object applier,
int  aflags 
)

Handle generic object applying.

Parameters
opObject being applied.
applierWho is applying the object.
aflagsApply flags.
Returns
One of Object method return values.

Definition at line 51 of file apply.c.

int object_apply_item ( object op,
object applier,
int  aflags 
)

Generic handler for applying equipment-like items, such as armour, weapons, trinkets, jewelry, etc.

Parameters
opObject being applied.
applierWho is applying the object.
aflagsApply flags.
Returns
One of Object method return values.

Definition at line 110 of file apply.c.

static bool object_apply_item_check_type ( object op,
object tmp 
)
static

Check if the specified object matches the type of the one being applied, and whether it's applied.

Parameters
opObject being applied.
tmpObject to check.
Returns
True if the object matches, false otherwise.

Definition at line 73 of file apply.c.