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 | |
static method_ret | book_type_apply (object *op, object *applier, int aflags) |
void | init_type_book (void) |
The implementation of the Book class of objects.
Definition in file book.cpp.
|
static |
Handles reading a regular (ie not containing a spell) book.
op | The Book to apply |
applier | The object attempting to apply the Book |
aflags | Special flags (always apply/unapply) |
METHOD_UNHANDLED | If the Book wasn't read by a player |
METHOD_OK | If applier was a player |
Definition at line 50 of file book.cpp.
References calc_skill_exp(), change_exp(), object::contr, draw_ext_info(), draw_ext_info_format(), esrv_update_item(), find_skill_by_name(), FLAG_BLIND, FLAG_IDENTIFIED, FLAG_NO_SKILL_IDENT, FLAG_WIZ, get_readable_message_type(), knowledge_read(), object::level, MAX_BUF, readable_message_type::message_subtype, readable_message_type::message_type, METHOD_OK, METHOD_UNHANDLED, MSG_TYPE_APPLY, MSG_TYPE_APPLY_ERROR, MSG_TYPE_APPLY_FAILURE, NDI_NAVY, NDI_UNIQUE, ob_describe(), give::op, PLAYER, QUERY_FLAG, SET_FLAG, object::skill, player::socket, object::type, UPD_FLAGS, UPD_NAME, socket_struct::update_look, and nlohmann::detail::void().
Referenced by init_type_book().
void init_type_book | ( | void | ) |
Initializer for the BOOK object type.
Definition at line 38 of file book.cpp.
References BOOK, book_type_apply(), and register_apply().
Referenced by register_all_ob_types().