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

Go to the source code of this file.

Functions

void init_type_poisoning (void)
 
static method_ret poisoning_type_process (object *op)
 

Detailed Description

The implementation of the Poisoning class of objects.

Definition in file poisoning.cpp.

Function Documentation

◆ init_type_poisoning()

void init_type_poisoning ( void  )

Initializer for the poisoning object type.

Definition at line 38 of file poisoning.cpp.

References POISONING, poisoning_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:

◆ poisoning_type_process()

static method_ret poisoning_type_process ( object op)
static

Handle ob_process for all poisoning objects.

Parameters
opThe poisoning that's being processed.
Returns
METHOD_OK normally. METHOD_ERROR if POISONING is in an invalid env.

Definition at line 47 of file poisoning.cpp.

References AT_INTERNAL, CLEAR_FLAG, draw_ext_info(), fix_object(), FLAG_ALIVE, FLAG_APPLIED, hit_player(), llevDebug, LOG(), METHOD_ERROR, METHOD_OK, MSG_TYPE_ATTRIBUTE, MSG_TYPE_ATTRIBUTE_BAD_EFFECT_END, MSG_TYPE_ATTRIBUTE_BAD_EFFECT_START, NDI_UNIQUE, object_free_drop_inventory(), object_remove(), give::op, PLAYER, QUERY_FLAG, and nlohmann::detail::void().

Referenced by init_type_poisoning().

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