Crossfire Server, Trunk
|
#include <global.h>
#include <ob_methods.h>
#include <ob_types.h>
#include <sounds.h>
#include <sproto.h>
#include <math.h>
Go to the source code of this file.
Functions | |
static method_ret | dragon_focus_type_apply (object *focus, object *applier, int aflags) |
void | init_type_dragon_focus (void) |
The implementation of the Food class of objects.
Definition in file dragon_focus.cpp.
|
static |
Handles applying food. If player is applying, takes care of messages and dragon special food.
focus | - The focus to apply |
applier | The player attempting to apply the food |
aflags | Special flags (always apply/unapply) |
Definition at line 52 of file dragon_focus.cpp.
References add_refcount(), object::animation, living::exp, object::face, FORCE, free_string(), is_dragon_pl(), METHOD_ERROR, object_find_by_type_and_arch_name(), PLAYER, object::stats, object::title, object::type, and nlohmann::detail::void().
Referenced by init_type_dragon_focus().
void init_type_dragon_focus | ( | void | ) |
Initializer for the food object type.
Definition at line 40 of file dragon_focus.cpp.
References DRAGON_FOCUS, dragon_focus_type_apply(), and register_apply().
Referenced by register_all_ob_types().