Crossfire Server, Trunk
|
#include <global.h>
#include <ob_methods.h>
#include <ob_types.h>
#include <sounds.h>
#include <sproto.h>
Go to the source code of this file.
Functions | |
void | init_type_treasure (void) |
static method_ret | treasure_type_apply (object *op, object *applier, int aflags) |
The implementation of the Treasure class of objects.
Definition in file treasure.cpp.
void init_type_treasure | ( | void | ) |
Initializer for the TREASURE object type.
Definition at line 38 of file treasure.cpp.
References register_apply(), TREASURE, and treasure_type_apply().
Referenced by register_all_ob_types().
|
static |
Attempts to apply treasure.
op | The treasure to apply |
applier | The object attempting to apply the treasure. Ignored unless a player |
aflags | Special flags (always apply/unapply) |
Definition at line 50 of file treasure.cpp.
References object::count, draw_ext_info(), draw_ext_info_format(), FLAG_ALIVE, INS_BELOW_ORIGINATOR, object::invisible, object::level, object::map, MAX_BUF, METHOD_OK, MSG_TYPE_APPLY, MSG_TYPE_APPLY_FAILURE, MSG_TYPE_APPLY_SUCCESS, give::name, NDI_UNIQUE, object_decrease_nrof_by_one, object_insert_in_map_at(), object_remove(), object_was_destroyed, give::op, PLAYER, QUERY_FLAG, query_name(), RUNE, spring_trap(), TRAP, object::type, nlohmann::detail::void(), object::x, and object::y.
Referenced by init_type_treasure().