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

Implimentation of skill scrolls. More...

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

Go to the source code of this file.

Functions

void init_type_skillscroll (void)
 Initializer for the SKILLSCROLL object type.
static method_ret skillscroll_type_apply (ob_methods *context, object *scroll, object *applier, int aflags)
 Applies a skillscroll.

Detailed Description

Implimentation of skill scrolls.

Definition in file skillscroll.c.


Function Documentation

void init_type_skillscroll ( void  )

Initializer for the SKILLSCROLL object type.

Definition at line 39 of file skillscroll.c.

References register_apply(), SKILLSCROLL, and skillscroll_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 skillscroll_type_apply ( ob_methods context,
object *  scroll,
object *  applier,
int  aflags 
) [static]

Applies a skillscroll.

Parameters:
contextmethod context.
scrollSkillscroll to apply.
applierobject attempting to apply the scroll. Should be a player.
aflagsspecial flags (always apply/unapply).
Returns:
METHOD_OK always.

Definition at line 57 of file skillscroll.c.

References decrease_ob, draw_ext_info_format(), learn_skill(), MAX_BUF, METHOD_OK, MSG_TYPE_APPLY, MSG_TYPE_APPLY_ERROR, MSG_TYPE_APPLY_FAILURE, MSG_TYPE_APPLY_SUCCESS, NDI_UNIQUE, PLAYER, and query_name().

Referenced by init_type_skillscroll().

Here is the call graph for this function:

Here is the caller graph for this function: