![]() |
Crossfire Server, Trunk
1.75.0
|
#include "global.h"
#include <string.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) |
Apply a bed to reality. More... | |
void | init_type_savebed (void) |
Initializer for the SAVEBED object type. More... | |
static method_ret | savebed_type_apply (object *op, object *applier, int aflags) |
Attempts to apply a savebed. More... | |
Implement beds that are applied to save a player to disk.
Definition in file savebed.cpp.
|
static |
Apply a bed to reality.
pl | player who is applying the bed. |
Definition at line 60 of file savebed.cpp.
References player::bed_x, player::bed_y, object::contr, object::direction, draw_ext_info_format(), EVENT_LOGOUT, events_execute_global_event(), living::exp, hiscore_check(), socket_struct::host, player::killer, object::map, MSG_TYPE_ADMIN, MSG_TYPE_ADMIN_LOADSAVE, MSG_TYPE_ADMIN_PLAYER, object::name, NDI_ALL, NDI_DK_ORANGE, NDI_RED, NDI_UNIQUE, object_remove(), object_update_speed(), party_leave(), mapstruct::path, pets_terminate_all(), play_again(), safe_strncpy, save_player(), player::savebed_map, player::socket, object::speed, object::stats, object::x, and object::y.
Referenced by savebed_type_apply().
void init_type_savebed | ( | void | ) |
Initializer for the SAVEBED object type.
Definition at line 34 of file savebed.cpp.
References register_apply(), SAVEBED, and savebed_type_apply().
Referenced by register_all_ob_types().
|
static |
Attempts to apply a savebed.
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 46 of file savebed.cpp.
References apply_savebed(), METHOD_OK, PLAYER, and object::type.
Referenced by init_type_savebed().