Crossfire Server, Trunk  R20513
Functions
blindness.c File Reference

The implementation of the BLINDNESS class of objects. More...

#include <global.h>
#include <ob_methods.h>
#include <ob_types.h>
#include <sounds.h>
#include <sproto.h>
Include dependency graph for blindness.c:

Go to the source code of this file.

Functions

static method_ret blindness_type_process (ob_methods *context, object *op)
 Move for BLINDNESS. More...
 
void init_type_blindness (void)
 Initializer for the blindness object type. More...
 

Detailed Description

The implementation of the BLINDNESS class of objects.

Definition in file blindness.c.

Function Documentation

static method_ret blindness_type_process ( ob_methods context,
object op 
)
static

Move for BLINDNESS.

If blindness is finished, remove it from the victim's inventory.

Parameters
contextThe method context.
opBlindness being processed.
Returns
METHOD_OK

Definition at line 51 of file blindness.c.

References change_abil(), CLEAR_FLAG, obj::env, fix_object(), FLAG_APPLIED, liv::food, METHOD_OK, object_free_drop_inventory(), object_remove(), and obj::stats.

Referenced by init_type_blindness().

Here is the call graph for this function:

Here is the caller graph for this function:

void init_type_blindness ( void  )

Initializer for the blindness object type.

Definition at line 39 of file blindness.c.

References BLINDNESS, blindness_type_process(), and register_process().

Referenced by register_all_ob_types().

Here is the call graph for this function:

Here is the caller graph for this function: