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

Go to the source code of this file.

Functions

objectcheck_inv (object *op, object *ob)
 
static int move_on_func (object *op, object *victim, object *originator, int state)
 
 OBJECT_TYPE_INIT_DEFINE (check_inv)
 

Detailed Description

Handles code for inventory checker objects.

Author
Alex Tokar

Definition in file check_inv.c.

Function Documentation

object* check_inv ( object op,
object ob 
)

Inventory checker object tries to find a matching object in creature's inventory.

Parameters
opWhat is doing the searching.
obObject of which to search the inventory.
Returns
Object that matches, NULL if none matched.

Definition at line 49 of file check_inv.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 90 of file check_inv.c.

OBJECT_TYPE_INIT_DEFINE ( check_inv  )

Initialize the inventory checker type object methods.

Definition at line 116 of file check_inv.c.