Crossfire Server, Trunk  1.75.0
light_object.cpp File Reference
#include "global.h"
#include "sproto.h"
+ Include dependency graph for light_object.cpp:

Go to the source code of this file.

Functions

void do_light (object *item, const char *lighter_name, object *applier)
 Common code for both lighting an item for applying the lighter and for lighting the lightable object. More...
 

Detailed Description

This file contains methods used for lighting objects, whether via applying the tool or by applying the lightable object.

Definition in file light_object.cpp.

Function Documentation

◆ do_light()

void do_light ( object item,
const char *  lighter_name,
object applier 
)

Common code for both lighting an item for applying the lighter and for lighting the lightable object.

Parameters
itemThe item to light.
lighter_nameThe name of the tool used to light the item
applierThe object applying the lighter/lightable

Definition at line 36 of file light_object.cpp.

References AT_FIRE, object::count, draw_ext_info_format(), fix_object(), MAX_BUF, MSG_TYPE_APPLY, MSG_TYPE_APPLY_FAILURE, MSG_TYPE_APPLY_SUCCESS, object::name, NDI_UNIQUE, object::nrof, object_get_player_container(), safe_strncpy, and save_throw_object().

Referenced by lightable_type_apply(), and lighter_type_apply().

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