[Package Index | Mudlib Index | Effect Index]

File /std/living/spells.c

This method returns the string help for the spell. It is used by the help command to find the help for the spell.

Includes

This class includes the following files /include/spells.h

Class Index

Method index

Public Functions

These are functions that everyone can access.

add_spell
int add_spell(string name,
              mixed ob,
              mixed func)

This method adds a spell into the current spell list.

Parameters:
name - the name of the spell to add
ob - the object the spell is on
func - the function to call for the spell

Returns:
1 on success, 0 on failure


check_old_spells
void check_old_spells()
help_spell
string help_spell(string str)
query_spell
mixed query_spell(string word)

This method finds the data for the spell of the specific name

Parameters:
word - the name of the spell to find data on

Returns:
the data for the spell


query_spells
mapping query_spells()

This method returns the current bunch of spells for the object.

Returns:
the spells


query_spells_nocase
mapping query_spells_nocase()

This method returns the list of spells without any case issues.

Returns:
the list of spells without any case


remove_spell
int remove_spell(string name)

This method removes the spell of the given name.

Parameters:
name - the name of the spell to remove

Returns:
1 on succes, 0 on failure


Protected Functions

These are functions that only objects inheriting the class can access.

reset_spells
void reset_spells()

This method resets all the spell data.

Classes

These are nice data types for dealing with... Data!