![]() |
Crossfire Server, Trunk
1.75.0
|
#include <global.h>#include <ob_methods.h>#include <ob_types.h>#include <sounds.h>#include <sproto.h>
Include dependency graph for sign.cpp:Go to the source code of this file.
Functions | |
| static void | apply_sign (object *sign, object *op, int moved_on) |
| Handles applying a sign. More... | |
| void | init_type_sign (void) |
| Initializer for the SIGN object type. More... | |
| static method_ret | sign_type_apply (object *op, object *applier, int aflags) |
| Attempts to apply a sign. More... | |
| static method_ret | sign_type_move_on (object *trap, object *victim, object *originator) |
| Move on this Sign object. More... | |
The implementation of the Sign class of objects.
Definition in file sign.cpp.
Handles applying a sign.
| sign | The sign applied |
| op | The object applying the sign |
| moved_on | Set to 1 if op moved on sign, 0 else. |
Definition at line 51 of file sign.cpp.
References object::contr, draw_ext_info, FLAG_BLIND, FLAG_WIZ, FLAG_WIZPASS, living::food, get_readable_message_type(), knowledge_read(), object::last_eat, readable_message_type::message_subtype, readable_message_type::message_type, object::msg, MSG_TYPE_APPLY, MSG_TYPE_APPLY_ERROR, MSG_TYPE_APPLY_FAILURE, NDI_NAVY, NDI_UNIQUE, QUERY_FLAG, and object::stats.
Referenced by sign_type_apply(), and sign_type_move_on().
Here is the call graph for this function:
Here is the caller graph for this function:| void init_type_sign | ( | void | ) |
Initializer for the SIGN object type.
Definition at line 40 of file sign.cpp.
References register_apply(), register_move_on(), SIGN, sign_type_apply(), and sign_type_move_on().
Referenced by register_all_ob_types().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Attempts to apply a sign.
| op | The Sign to apply |
| applier | The object attempting to apply the Sign |
| aflags | Special flags (always apply/unapply) |
Definition at line 95 of file sign.cpp.
References apply_sign(), and METHOD_OK.
Referenced by init_type_sign().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Move on this Sign object.
| trap | The Sign we're moving on |
| victim | The object moving over this one |
| originator | The object that caused the move_on event |
Definition at line 108 of file sign.cpp.
References apply_sign(), common_post_ob_move_on(), common_pre_ob_move_on(), living::food, FOR_INV_FINISH, FOR_INV_PREPARE, METHOD_ERROR, METHOD_OK, PLAYER, object::stats, TRANSPORT, and object::type.
Referenced by init_type_sign().
Here is the call graph for this function:
Here is the caller graph for this function: