ManaPlus
|
#include <textcommand.h>
Public Member Functions | |
TextCommand (const int id, const std::string &symbol, const std::string &command, const std::string &comment, const CommandTargetT type, const std::string &icon, const unsigned int basicLvl, const MagicSchoolT school, const unsigned int schoolLvl, const unsigned int mana) | |
TextCommand (const int id, const std::string &symbol, const std::string &command, const std::string &comment, const CommandTargetT type, const std::string &icon) | |
TextCommand (const int id) | |
~TextCommand () | |
std::string | getName () const |
std::string | getCommand () const |
std::string | getComment () const |
std::string | getSymbol () const |
int | getId () const |
CommandTargetT | getTargetType () const |
std::string | getIcon () const |
unsigned int | getMana () const |
MagicSchoolT | getSchool () const |
unsigned | getBaseLvl () const |
unsigned | getSchoolLvl () const |
void | setMana (const unsigned int mana) |
void | setSchool (const MagicSchoolT school) |
void | setBaseLvl (const unsigned int baseLvl) |
void | setSchoolLvl (const unsigned int schoolLvl) |
TextCommandTypeT | getCommandType () const |
void | setCommandType (const TextCommandTypeT commandType) |
void | setCommand (const std::string &command) |
void | setComment (const std::string &comment) |
void | setSymbol (const std::string &symbol) |
void | setId (const int id) |
void | setTargetType (const CommandTargetT targetType) |
void | setIcon (const std::string &icon) |
bool | isEmpty () const |
Image * | getImage () const |
Protected Attributes | |
std::string | mCommand |
std::string | mComment |
std::string | mSymbol |
CommandTargetT | mTargetType |
std::string | mIcon |
int | mId |
unsigned int | mMana |
MagicSchoolT | mSchool |
unsigned | mBaseLvl |
unsigned | mSchoolLvl |
TextCommandTypeT | mCommandType |
Image * | mImage |
Private Member Functions | |
void | loadImage () |
Represents one or more instances of a certain item type.
Definition at line 41 of file textcommand.h.
TextCommand::TextCommand | ( | const int | id, |
const std::string & | symbol, | ||
const std::string & | command, | ||
const std::string & | comment, | ||
const CommandTargetT | type, | ||
const std::string & | icon, | ||
const unsigned int | basicLvl, | ||
const MagicSchoolT | school, | ||
const unsigned int | schoolLvl, | ||
const unsigned int | mana | ||
) |
TextCommand::TextCommand | ( | const int | id, |
const std::string & | symbol, | ||
const std::string & | command, | ||
const std::string & | comment, | ||
const CommandTargetT | type, | ||
const std::string & | icon | ||
) |
|
explicit |
TextCommand::~TextCommand | ( | ) |
|
inline |
Definition at line 110 of file textcommand.h.
References mBaseLvl.
Referenced by SpellManager::invoke(), SpellManager::save(), and TextCommandEditor::TextCommandEditor().
|
inline |
Definition at line 85 of file textcommand.h.
References mCommand.
Referenced by SpellManager::autoComplete(), SpellManager::invoke(), SpellManager::invokeSpell(), SpellManager::save(), and TextCommandEditor::TextCommandEditor().
|
inline |
Definition at line 128 of file textcommand.h.
References mCommandType.
Referenced by SpellManager::invoke(), SpellManager::save(), and TextCommandEditor::TextCommandEditor().
|
inline |
Definition at line 88 of file textcommand.h.
References mComment.
Referenced by SpellPopup::setItem(), and TextCommandEditor::TextCommandEditor().
|
inline |
Definition at line 100 of file textcommand.h.
References mIcon.
Referenced by TextCommandEditor::TextCommandEditor().
|
inline |
Definition at line 94 of file textcommand.h.
References mId.
Referenced by SpellManager::addSpell(), DragDrop::dragCommand(), SpellShortcutContainer::mouseDragged(), SpellShortcutContainer::mouseReleased(), and SpellManager::swap().
|
inline |
Definition at line 156 of file textcommand.h.
References mImage.
Referenced by DragDrop::dragCommand(), ItemShortcutContainer::draw(), SpellShortcutContainer::draw(), ItemShortcutContainer::safeDraw(), and SpellShortcutContainer::safeDraw().
|
inline |
Definition at line 104 of file textcommand.h.
References mMana.
Referenced by SpellManager::invoke(), SpellManager::save(), and TextCommandEditor::TextCommandEditor().
|
inline |
Definition at line 82 of file textcommand.h.
References mCommand.
Referenced by SpellPopup::setItem().
|
inline |
Definition at line 107 of file textcommand.h.
References mSchool.
Referenced by SpellManager::invoke(), SpellManager::save(), and TextCommandEditor::TextCommandEditor().
|
inline |
Definition at line 113 of file textcommand.h.
References mSchoolLvl.
Referenced by SpellManager::invoke(), SpellManager::save(), and TextCommandEditor::TextCommandEditor().
|
inline |
Definition at line 91 of file textcommand.h.
References mSymbol.
Referenced by DragDrop::dragCommand(), ItemShortcutContainer::draw(), SpellShortcutContainer::draw(), ItemShortcutContainer::safeDraw(), SpellShortcutContainer::safeDraw(), SpellManager::save(), and TextCommandEditor::TextCommandEditor().
|
inline |
Definition at line 97 of file textcommand.h.
References mTargetType.
Referenced by SpellManager::autoComplete(), SpellManager::invoke(), SpellManager::save(), and TextCommandEditor::TextCommandEditor().
|
inline |
Definition at line 153 of file textcommand.h.
References mCommand, and mSymbol.
Referenced by ItemShortcutContainer::draw(), SpellShortcutContainer::draw(), SpellShortcutContainer::mouseMoved(), SpellShortcutContainer::mouseReleased(), ItemShortcutContainer::safeDraw(), and SpellShortcutContainer::safeDraw().
|
private |
Definition at line 120 of file textcommand.cpp.
References ItemDB::exists(), ItemDB::get(), Loader::getImage(), Theme::getImageFromTheme(), Configuration::getStringValue(), SpriteDisplay::image, Actions::info(), mIcon, mImage, pathJoin(), and paths.
Referenced by setIcon(), and TextCommand().
|
inline |
Definition at line 122 of file textcommand.h.
References mBaseLvl.
Referenced by TextCommandEditor::deleteCommand(), and TextCommandEditor::save().
|
inline |
Definition at line 135 of file textcommand.h.
References mCommand.
Referenced by TextCommandEditor::deleteCommand(), and TextCommandEditor::save().
|
inline |
Definition at line 131 of file textcommand.h.
References mCommandType.
Referenced by TextCommandEditor::deleteCommand(), and TextCommandEditor::save().
|
inline |
Definition at line 138 of file textcommand.h.
References mComment.
Referenced by TextCommandEditor::deleteCommand(), and TextCommandEditor::save().
|
inline |
Definition at line 150 of file textcommand.h.
References loadImage(), and mIcon.
Referenced by TextCommandEditor::deleteCommand(), and TextCommandEditor::save().
|
inline |
|
inline |
Definition at line 116 of file textcommand.h.
References mMana.
Referenced by TextCommandEditor::deleteCommand(), and TextCommandEditor::save().
|
inline |
Definition at line 119 of file textcommand.h.
References mSchool.
Referenced by TextCommandEditor::deleteCommand(), and TextCommandEditor::save().
|
inline |
Definition at line 125 of file textcommand.h.
References mSchoolLvl.
Referenced by TextCommandEditor::deleteCommand(), and TextCommandEditor::save().
|
inline |
Definition at line 141 of file textcommand.h.
References mSymbol.
Referenced by TextCommandEditor::deleteCommand(), and TextCommandEditor::save().
|
inline |
Definition at line 147 of file textcommand.h.
References mTargetType.
Referenced by TextCommandEditor::deleteCommand(), and TextCommandEditor::save().
|
protected |
Definition at line 172 of file textcommand.h.
Referenced by getBaseLvl(), and setBaseLvl().
|
protected |
Definition at line 163 of file textcommand.h.
Referenced by getCommand(), getName(), isEmpty(), and setCommand().
|
protected |
Definition at line 174 of file textcommand.h.
Referenced by getCommandType(), and setCommandType().
|
protected |
Definition at line 164 of file textcommand.h.
Referenced by getComment(), and setComment().
|
protected |
Definition at line 167 of file textcommand.h.
Referenced by getIcon(), loadImage(), and setIcon().
|
protected |
Definition at line 168 of file textcommand.h.
|
protected |
Definition at line 177 of file textcommand.h.
Referenced by getImage(), loadImage(), and ~TextCommand().
|
protected |
Definition at line 170 of file textcommand.h.
|
protected |
Definition at line 171 of file textcommand.h.
Referenced by getSchool(), and setSchool().
|
protected |
Definition at line 173 of file textcommand.h.
Referenced by getSchoolLvl(), and setSchoolLvl().
|
protected |
Definition at line 165 of file textcommand.h.
Referenced by getSymbol(), isEmpty(), and setSymbol().
|
protected |
Definition at line 166 of file textcommand.h.
Referenced by getTargetType(), and setTargetType().