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

Go to the source code of this file.

Functions

objectkey_match (object *op, const object *locked)
 
 OBJECT_TYPE_INIT_DEFINE (key)
 

Detailed Description

Handles code for keys.

Author
Alex Tokar

Definition in file key.c.

Function Documentation

object* key_match ( object op,
const object locked 
)

Search object for the needed key to open a door/container.

Parameters
opObject to search in.
lockedThe object to find the key for.
Returns
The key pointer if found, NULL otherwise.

Definition at line 48 of file key.c.

OBJECT_TYPE_INIT_DEFINE ( key  )

Initialize the key type object methods.

Definition at line 73 of file key.c.