Crossfire Server, Branch 1.12  R12190
Functions
savebed.c File Reference

The implementation of the Savebed class of objects. More...

#include <global.h>
#include <ob_methods.h>
#include <ob_types.h>
#include <sounds.h>
#include <sproto.h>
Include dependency graph for savebed.c:

Go to the source code of this file.

Functions

static void apply_savebed (object *pl)
 Handle savebed.
void init_type_savebed (void)
 Initializer for the SAVEBED object type.
static method_ret savebed_type_apply (ob_methods *context, object *op, object *applier, int aflags)
 Attempts to apply a savebed.

Detailed Description

The implementation of the Savebed class of objects.

Definition in file savebed.c.


Function Documentation

static void apply_savebed ( object *  pl) [static]

Handle savebed.

Parameters:
plplayer who is applying the bed.

Definition at line 64 of file savebed.c.

References check_score(), draw_ext_info_format(), EVENT_LOGOUT, execute_global_event(), MAP_SWAP_TIME, MAP_TIMEOUT, MSG_TYPE_ADMIN, MSG_TYPE_ADMIN_PLAYER, NDI_ALL, NDI_DK_ORANGE, NDI_UNIQUE, play_again(), remove_ob(), save_player(), terminate_all_pets(), and update_ob_speed().

Referenced by savebed_type_apply().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

static method_ret savebed_type_apply ( ob_methods context,
object *  op,
object *  applier,
int  aflags 
) [static]

Attempts to apply a savebed.

Parameters:
contextThe method context
opThe savebed to apply
applierThe object attempting to apply the savebed. Ignore if not a player
aflagsSpecial flags (always apply/unapply)
Returns:
The return value is always METHOD_OK

Definition at line 52 of file savebed.c.

References apply_savebed(), METHOD_OK, and PLAYER.

Referenced by init_type_savebed().

Here is the call graph for this function:

Here is the caller graph for this function: