|
Pol
Revision:cb584c9
|
#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::Package * | pkg_ |
| std::string | power_words_ |
| RegList | reglist_ |
| ScriptDef | scriptdef_ |
| unsigned short | spellid_ |
Friends | |
| void | register_spell (USpell *spell, unsigned short spellid) |
|
protected |
| Pol::Core::USpell::USpell | ( | Clib::ConfigElem & | elem, |
| Plib::Package * | pkg | ||
| ) |
Definition at line 127 of file spells.cpp.
References action_, Pol::Core::ACTION_CAST_SPELL1, ERROR_PRINT, Pol::Core::gamestate, Pol::Items::get_objtype_from_string(), name_, params_, reglist_, Pol::Clib::ConfigElem::remove_prop(), Pol::Core::GameState::spellcircles, Pol::Clib::ConfigElem::throw_error(), and Pol::Core::UACTION_IS_VALID().
| void Pol::Core::USpell::cast | ( | Mobile::Character * | caster | ) |
Definition at line 189 of file spells.cpp.
References Pol::Mobile::Character::client, Pol::Core::ScriptDef::empty(), Pol::Core::find_script2(), ref_ptr< T >::get(), Pol::Core::nocast_here(), scriptdef_, Pol::Core::send_sysmessage(), Pol::Mobile::Character::start_spell_script(), and Pol::Plib::systemstate.
Referenced by Pol::Core::do_cast(), Pol::Module::UOExecutorModule::mf_StartSpellEffect(), and Pol::Core::SpellTask::on_run().
| bool Pol::Core::USpell::check_mana | ( | Mobile::Character * | chr | ) |
Definition at line 231 of file spells.cpp.
References Pol::Mobile::VitalValue::current_ones(), Pol::Core::gamestate, manacost(), Pol::Core::GameState::pVitalMana, Pol::Mobile::Character::vital(), and Pol::Core::Vital::vitalid.
Referenced by Pol::Module::VitalExecutorModule::mf_ConsumeMana().
| bool Pol::Core::USpell::check_skill | ( | Mobile::Character * | chr | ) |
Definition at line 236 of file spells.cpp.
References Pol::Mobile::Character::check_skill(), Pol::Core::USpellParams::difficulty, params_, Pol::Core::USpellParams::pointvalue, and Pol::Core::SKILLID_MAGERY.
| void Pol::Core::USpell::consume_mana | ( | Mobile::Character * | chr | ) |
Definition at line 241 of file spells.cpp.
References Pol::Mobile::Character::consume(), Pol::Core::gamestate, manacost(), Pol::Core::GameState::pVitalMana, Pol::Mobile::Character::vital(), and Pol::Core::Vital::vitalid.
Referenced by Pol::Module::VitalExecutorModule::mf_ConsumeMana().
| bool Pol::Core::USpell::consume_reagents | ( | Mobile::Character * | chr | ) |
Definition at line 214 of file spells.cpp.
References Pol::Mobile::Character::backpack(), Pol::Core::UContainer::find_objtype_noninuse(), reglist_, and Pol::Core::subtract_amount_from_item().
Referenced by Pol::Module::UOExecutorModule::mf_ConsumeReagents().
|
inline |
Definition at line 129 of file spells.h.
Referenced by Pol::Module::UOExecutorModule::mf_GetSpellDifficulty().
| size_t Pol::Core::USpell::estimateSize | ( | ) | const |
Definition at line 178 of file spells.cpp.
References Pol::Core::ScriptDef::estimatedSize(), name_, power_words_, reglist_, and scriptdef_.
|
inline |
Definition at line 121 of file spells.h.
Referenced by check_mana(), and consume_mana().
|
inline |
Definition at line 133 of file spells.h.
Referenced by Pol::Core::register_spell().
|
staticprotected |
| void Pol::Core::USpell::speak_power_words | ( | Mobile::Character * | chr, |
| unsigned short | font, | ||
| unsigned short | color | ||
| ) |
Definition at line 247 of file spells.cpp.
References Pol::Mobile::Character::client, Pol::Mobile::Character::hidden(), power_words_, Pol::Core::private_say_above(), and Pol::Core::say_above().
Referenced by Pol::Module::UOExecutorModule::mf_SpeakPowerWords().
|
inline |
Definition at line 141 of file spells.h.
Referenced by Pol::Mobile::Character::start_spell_script().
|
friend |
Definition at line 395 of file spells.cpp.
|
protected |
|
protected |
Definition at line 103 of file spells.h.
Referenced by estimateSize(), and USpell().
|
protected |
Definition at line 109 of file spells.h.
Referenced by check_skill(), and USpell().
|
protected |
Definition at line 100 of file spells.h.
Referenced by Pol::Core::register_spell().
|
protected |
Definition at line 104 of file spells.h.
Referenced by estimateSize(), and speak_power_words().
|
protected |
Definition at line 108 of file spells.h.
Referenced by consume_reagents(), estimateSize(), and USpell().
|
protected |
Definition at line 112 of file spells.h.
Referenced by cast(), and estimateSize().