Crossfire Server, Trunk
cf_handle.c File Reference
#include <global.h>
#include <ob_methods.h>
#include <ob_types.h>
#include <sounds.h>
#include <sproto.h>
+ Include dependency graph for cf_handle.c:

Go to the source code of this file.

Functions

static method_ret cf_handle_type_apply (object *op, object *applier, int aflags)
 
void init_type_cf_handle (void)
 

Detailed Description

The implementation of the CF_Handle class of objects.

Definition in file cf_handle.c.

Function Documentation

◆ cf_handle_type_apply()

static method_ret cf_handle_type_apply ( object op,
object applier,
int  aflags 
)
static

Attempts to apply a handle.

Parameters
opThe handle to apply
applierThe object attempting to apply the handle.
aflagsSpecial flags (always apply/unapply)
Returns
The return value is always METHOD_OK

Definition at line 49 of file cf_handle.c.

References draw_ext_info(), METHOD_OK, MSG_TYPE_APPLY, MSG_TYPE_APPLY_SUCCESS, NDI_UNIQUE, object_update(), give::op, play_sound_map(), push_button(), SET_ANIMATION, SOUND_TYPE_ITEM, UP_OBJ_FACE, and nlohmann::detail::void().

Referenced by init_type_cf_handle().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ init_type_cf_handle()

void init_type_cf_handle ( void  )

Initializer for the CF_HANDLE object type.

Definition at line 38 of file cf_handle.c.

References CF_HANDLE, cf_handle_type_apply(), and register_apply().

Referenced by register_all_ob_types().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: