Pol  Revision:cb584c9
Pol::Core::USpell Class Reference

#include <spells.h>

Public Member Functions

 USpell (Clib::ConfigElem &elem, Plib::Package *pkg)
 
UACTION animation () const
 
void cast (Mobile::Character *caster)
 
bool check_mana (Mobile::Character *chr)
 
bool check_skill (Mobile::Character *chr)
 
void consume_mana (Mobile::Character *chr)
 
bool consume_reagents (Mobile::Character *chr)
 
unsigned short delay () const
 
unsigned short difficulty () const
 
size_t estimateSize () const
 
unsigned short manacost () const
 
const std::string & name () const
 
void speak_power_words (Mobile::Character *chr, unsigned short font, unsigned short color)
 
unsigned short spell_id () const
 

Protected Types

typedef std::vector< unsigned int > RegList
 

Static Protected Member Functions

static void register_spell (USpell *spell)
 

Protected Attributes

UACTION action_
 
std::string name_
 
USpellParams params_
 
Plib::Packagepkg_
 
std::string power_words_
 
RegList reglist_
 
ScriptDef scriptdef_
 
unsigned short spellid_
 

Friends

void register_spell (USpell *spell, unsigned short spellid)
 

Detailed Description

Definition at line 77 of file spells.h.

Member Typedef Documentation

typedef std::vector<unsigned int> Pol::Core::USpell::RegList
protected

Definition at line 107 of file spells.h.

Constructor & Destructor Documentation

Member Function Documentation

UACTION Pol::Core::USpell::animation ( ) const
inline

Definition at line 137 of file spells.h.

unsigned short Pol::Core::USpell::delay ( ) const
inline

Definition at line 125 of file spells.h.

unsigned short Pol::Core::USpell::difficulty ( ) const
inline

Definition at line 129 of file spells.h.

Referenced by Pol::Module::UOExecutorModule::mf_GetSpellDifficulty().

size_t Pol::Core::USpell::estimateSize ( ) const
unsigned short Pol::Core::USpell::manacost ( ) const
inline

Definition at line 121 of file spells.h.

Referenced by check_mana(), and consume_mana().

const std::string & Pol::Core::USpell::name ( ) const
inline

Definition at line 133 of file spells.h.

Referenced by Pol::Core::register_spell().

static void Pol::Core::USpell::register_spell ( USpell spell)
staticprotected
void Pol::Core::USpell::speak_power_words ( Mobile::Character chr,
unsigned short  font,
unsigned short  color 
)
unsigned short Pol::Core::USpell::spell_id ( ) const
inline

Definition at line 141 of file spells.h.

Referenced by Pol::Mobile::Character::start_spell_script().

Friends And Related Function Documentation

void register_spell ( USpell spell,
unsigned short  spellid 
)
friend

Definition at line 395 of file spells.cpp.

Member Data Documentation

UACTION Pol::Core::USpell::action_
protected

Definition at line 105 of file spells.h.

Referenced by USpell().

std::string Pol::Core::USpell::name_
protected

Definition at line 103 of file spells.h.

Referenced by estimateSize(), and USpell().

USpellParams Pol::Core::USpell::params_
protected

Definition at line 109 of file spells.h.

Referenced by check_skill(), and USpell().

Plib::Package* Pol::Core::USpell::pkg_
protected

Definition at line 100 of file spells.h.

Referenced by Pol::Core::register_spell().

std::string Pol::Core::USpell::power_words_
protected

Definition at line 104 of file spells.h.

Referenced by estimateSize(), and speak_power_words().

RegList Pol::Core::USpell::reglist_
protected

Definition at line 108 of file spells.h.

Referenced by consume_reagents(), estimateSize(), and USpell().

ScriptDef Pol::Core::USpell::scriptdef_
protected

Definition at line 112 of file spells.h.

Referenced by cast(), and estimateSize().

unsigned short Pol::Core::USpell::spellid_
protected

Definition at line 102 of file spells.h.


The documentation for this class was generated from the following files: