|
Crossfire Server, Branch 1.12
R12190
|
The implementation of the Sign class of objects. More...
#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 void | apply_sign (object *sign, object *op, int autoapply) |
| Handles applying a sign. | |
| void | init_type_sign (void) |
| Initializer for the SIGN object type. | |
| static method_ret | sign_type_apply (ob_methods *context, object *op, object *applier, int aflags) |
| Attempts to apply a sign. | |
| static method_ret | sign_type_move_on (ob_methods *context, object *trap, object *victim, object *originator) |
| Move on this Sign object. | |
The implementation of the Sign class of objects.
Definition in file sign.c.
| static void apply_sign | ( | object * | sign, |
| object * | op, | ||
| int | autoapply | ||
| ) | [static] |
Handles applying a sign.
| sign | The sign applied |
| op | The object applying the sign |
| autoapply | Set this to 1 to automatically apply the sign |
Definition at line 51 of file sign.c.
References draw_ext_info(), FLAG_BLIND, FLAG_WIZ, FLAG_WIZPASS, get_readable_message_type(), readable_message_type::message_subtype, readable_message_type::message_type, MSG_TYPE_APPLY, MSG_TYPE_APPLY_ERROR, MSG_TYPE_APPLY_FAILURE, NDI_NAVY, NDI_UNIQUE, and QUERY_FLAG.
Referenced by sign_type_apply(), and sign_type_move_on().


| void init_type_sign | ( | void | ) |
Initializer for the SIGN object type.
Definition at line 40 of file sign.c.
References register_apply(), register_move_on(), SIGN, sign_type_apply(), and sign_type_move_on().
Referenced by register_all_ob_types().


| static method_ret sign_type_apply | ( | ob_methods * | context, |
| object * | op, | ||
| object * | applier, | ||
| int | aflags | ||
| ) | [static] |
Attempts to apply a sign.
| context | The method context |
| op | The Sign to apply |
| applier | The object attempting to apply the Sign |
| aflags | Special flags (always apply/unapply) |
Definition at line 97 of file sign.c.
References apply_sign(), and METHOD_OK.
Referenced by init_type_sign().


| static method_ret sign_type_move_on | ( | ob_methods * | context, |
| object * | trap, | ||
| object * | victim, | ||
| object * | originator | ||
| ) | [static] |
Move on this Sign object.
| context | The method context |
| 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 110 of file sign.c.
References apply_sign(), common_post_ob_move_on(), common_pre_ob_move_on(), METHOD_ERROR, METHOD_OK, and PLAYER.
Referenced by init_type_sign().


1.7.6.1