Crossfire Server, Branches 1.12
R18729
|
#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_savebed (object *pl) |
void | init_type_savebed (void) |
static method_ret | savebed_type_apply (ob_methods *context, object *op, object *applier, int aflags) |
The implementation of the Savebed class of objects.
Definition in file savebed.c.
|
static |
Handle savebed.
pl | player who is applying the bed. |
Definition at line 64 of file savebed.c.
References pl::bed_x, pl::bed_y, check_score(), obj::contr, obj::direction, draw_ext_info_format(), EVENT_LOGOUT, execute_global_event(), socket_struct::host, pl::killer, obj::map, MAP_SWAP_TIME, MAP_TIMEOUT, MSG_TYPE_ADMIN, MSG_TYPE_ADMIN_PLAYER, obj::name, NDI_ALL, NDI_DK_ORANGE, NDI_UNIQUE, mapdef::path, play_again(), remove_ob(), save_player(), pl::savebed_map, pl::socket, obj::speed, terminate_all_pets(), update_ob_speed(), obj::x, and obj::y.
Referenced by savebed_type_apply().
void init_type_savebed | ( | void | ) |
Initializer for the SAVEBED object type.
Definition at line 39 of file savebed.c.
References register_apply(), SAVEBED, and savebed_type_apply().
Referenced by register_all_ob_types().
|
static |
Attempts to apply a savebed.
context | The method context |
op | The savebed to apply |
applier | The object attempting to apply the savebed. Ignore if not a player |
aflags | Special flags (always apply/unapply) |
Definition at line 52 of file savebed.c.
References apply_savebed(), METHOD_OK, PLAYER, and obj::type.
Referenced by init_type_savebed().