#include <spell.h>
Public Member Functions | |
void | changeQuantity (int delta) override |
virtual void | cast (Maps::MapBase *map) |
virtual void | dungeonCast (Maps::MapDungeon *map) |
uint | getBuyCost () const |
Public Member Functions inherited from Ultima::Shared::Itemized | |
Itemized () | |
virtual | ~Itemized () |
void | synchronize (Common::Serializer &s) |
void | incrQuantity () |
bool | empty () const |
bool | decrQuantity () |
Public Member Functions inherited from Ultima::Shared::NamedItem | |
NamedItem (const Common::String &name) | |
const Common::String | getName () const override |
Public Member Functions inherited from Ultima::Shared::TreeItem | |
virtual bool | isEquals (const Common::String &name, int maxLen=0) const |
virtual int | compareTo (const Common::String &name, int maxLen=0) const |
virtual void | viewChange () |
TreeItem * | getParent () const |
Game * | getGame () |
const Game * | getGame () const |
Gfx::VisualItem * | getView () |
TreeItem * | getNextSibling () const |
TreeItem * | getPriorSibling () const |
TreeItem * | getLastSibling () |
TreeItem * | getFirstChild () const |
TreeItem * | getLastChild () const |
TreeItem * | scan (TreeItem *item) const |
TreeItem * | findChildInstanceOf (const ClassDef &classDef) const |
TreeItem * | findNextInstanceOf (const ClassDef &classDef, TreeItem *startItem) const |
void | addUnder (TreeItem *newParent) |
void | addChild (TreeItem *child) |
void | setParent (TreeItem *newParent) |
void | addSibling (TreeItem *item) |
void | moveUnder (TreeItem *newParent) |
void | destroyAll () |
int | destroyChildren () |
void | detach () |
void | attach (TreeItem *item) |
NamedItem * | findByName (const Common::String &name) |
Public Member Functions inherited from Ultima::Shared::BaseObject | |
virtual ::Ultima::Shared::ClassDef | getType () const |
bool | isInstanceOf (const ClassDef &classDef) const |
Protected Member Functions | |
void | addInfoMsg (const Common::String &text, bool newLine=true, bool replaceLine=false) |
Spell (Ultima1Game *game, Character *c, SpellId spellId) | |
Protected Attributes | |
Ultima1Game * | _game |
Character * | _character |
SpellId | _spellId |
Additional Inherited Members | |
Static Public Member Functions inherited from Ultima::Shared::BaseObject | |
::Ultima::Shared::ClassDef | type () |
Public Attributes inherited from Ultima::Shared::Itemized | |
uint | _quantity |
Public Attributes inherited from Ultima::Shared::NamedItem | |
Common::String | _name |
CLASSDEF | |
Public Attributes inherited from Ultima::Shared::TreeItem | |
CLASSDEF | |
Base class for Ultima 1 spells
|
protected |
Constructor
|
protected |
Adds a text string to the info area
text | Text to add |
newLine | Whether to apply a newline at the end |
|
inlineoverridevirtual |
Change the quantity by a given amount
Reimplemented from Ultima::Shared::Itemized.
|
virtual |
Cast the spell outside of dungeons
Reimplemented in Ultima::Ultima1::Spells::KillMagicMIssile, and Ultima::Ultima1::Spells::Prayer.
|
virtual |
Cast the spell in dungeons
Reimplemented in Ultima::Ultima1::Spells::MagicMissile, Ultima::Ultima1::Spells::Kill, Ultima::Ultima1::Spells::OpenUnlock, Ultima::Ultima1::Spells::Prayer, Ultima::Ultima1::Spells::Blink, Ultima::Ultima1::Spells::Create, Ultima::Ultima1::Spells::Destroy, Ultima::Ultima1::Spells::LadderDown, Ultima::Ultima1::Spells::LadderUp, and Ultima::Ultima1::Spells::Steal.
uint Ultima::Ultima1::Spells::Spell::getBuyCost | ( | ) | const |
Gets how much the weapon can be bought for