ManaPlus
|
#include <skillinfo.h>
Public Member Functions | |
SkillInfo () | |
~SkillInfo () | |
void | update () |
SkillData * | getData (const int level) const |
SkillData * | getData1 (const int level) const |
void | addData (const int level, SkillData *const data) |
bool | isUsable () const |
std::string | toDataStr () const |
Data Fields | |
std::string | skillLevel |
std::string | skillEffect |
std::string | useButton |
std::string | errorText |
std::string | castingAction |
std::string | castingRideAction |
std::string | castingSkyAction |
std::string | castingWaterAction |
SkillDataMap | dataMap |
SkillModel * | model |
SkillTab * | tab |
SkillData * | data |
int | level |
int | customSelectedLevel |
int | customOffsetX |
int | customOffsetY |
int | skillLevelWidth |
unsigned int | id |
int | range |
int | sp |
int | duration |
int | durationTime |
int | cooldown |
int | x |
int | y |
SkillType::SkillType | type |
SkillOwner::Type | owner |
CastTypeT | customCastType |
Modifiable | modifiable |
Visible | visible |
Visible | alwaysVisible |
bool | useTextParameter |
Definition at line 50 of file skillinfo.h.
SkillInfo::SkillInfo | ( | ) |
Definition at line 38 of file skillinfo.cpp.
SkillInfo::~SkillInfo | ( | ) |
Definition at line 76 of file skillinfo.cpp.
void SkillInfo::addData | ( | const int | level, |
SkillData *const | data | ||
) |
Definition at line 178 of file skillinfo.cpp.
References dataMap.
SkillData * SkillInfo::getData | ( | const int | level | ) | const |
SkillData * SkillInfo::getData1 | ( | const int | level | ) | const |
|
inline |
Definition at line 96 of file skillinfo.h.
References SkillType::Attack, SkillType::Self, SkillType::Support, and type.
std::string SkillInfo::toDataStr | ( | ) | const |
Definition at line 199 of file skillinfo.cpp.
References CAST_S32, customCastType, customOffsetX, customOffsetY, and strprintf().
void SkillInfo::update | ( | ) |
Definition at line 83 of file skillinfo.cpp.
References _, CAST_S32, customSelectedLevel, data, dataMap, getData(), PlayerInfo::getSkillLevel(), level, model, modifiable, Modifiable_false, SkillTypeEntry::name, range, skillEffect, skillLevel, skillLevelWidth, skillTypeList, skillTypeListSize, sp, strprintf(), Catch::toString(), type, SkillTypeEntry::type, SkillType::Unknown, SkillModel::updateVisibilities(), visible, Visible_false, and Visible_true.
Visible SkillInfo::alwaysVisible |
Definition at line 82 of file skillinfo.h.
std::string SkillInfo::castingAction |
Definition at line 56 of file skillinfo.h.
std::string SkillInfo::castingRideAction |
Definition at line 57 of file skillinfo.h.
std::string SkillInfo::castingSkyAction |
Definition at line 58 of file skillinfo.h.
std::string SkillInfo::castingWaterAction |
Definition at line 59 of file skillinfo.h.
int SkillInfo::cooldown |
Definition at line 74 of file skillinfo.h.
Referenced by SkillListBox::draw().
CastTypeT SkillInfo::customCastType |
Definition at line 79 of file skillinfo.h.
Referenced by toDataStr().
int SkillInfo::customOffsetX |
Definition at line 66 of file skillinfo.h.
Referenced by toDataStr().
int SkillInfo::customOffsetY |
Definition at line 67 of file skillinfo.h.
Referenced by toDataStr().
int SkillInfo::customSelectedLevel |
Definition at line 65 of file skillinfo.h.
Referenced by update().
SkillData* SkillInfo::data |
Definition at line 63 of file skillinfo.h.
Referenced by SkillListBox::draw(), SkillRectangleListBox::draw(), SkillInfo(), and update().
SkillDataMap SkillInfo::dataMap |
Definition at line 60 of file skillinfo.h.
Referenced by addData(), getData(), getData1(), SkillInfo(), update(), and ~SkillInfo().
int SkillInfo::duration |
Definition at line 72 of file skillinfo.h.
int SkillInfo::durationTime |
Definition at line 73 of file skillinfo.h.
std::string SkillInfo::errorText |
Definition at line 55 of file skillinfo.h.
unsigned int SkillInfo::id |
Definition at line 69 of file skillinfo.h.
int SkillInfo::level |
Definition at line 64 of file skillinfo.h.
Referenced by update().
SkillModel* SkillInfo::model |
Definition at line 61 of file skillinfo.h.
Referenced by update().
Modifiable SkillInfo::modifiable |
Definition at line 80 of file skillinfo.h.
Referenced by update().
SkillOwner::Type SkillInfo::owner |
Definition at line 78 of file skillinfo.h.
int SkillInfo::range |
Definition at line 70 of file skillinfo.h.
Referenced by update().
std::string SkillInfo::skillEffect |
Definition at line 53 of file skillinfo.h.
Referenced by update().
std::string SkillInfo::skillLevel |
Definition at line 52 of file skillinfo.h.
Referenced by SkillListBox::draw(), SkillRectangleListBox::draw(), and update().
int SkillInfo::skillLevelWidth |
Definition at line 68 of file skillinfo.h.
Referenced by SkillListBox::draw(), SkillRectangleListBox::draw(), and update().
int SkillInfo::sp |
Definition at line 71 of file skillinfo.h.
Referenced by update().
SkillTab* SkillInfo::tab |
Definition at line 62 of file skillinfo.h.
SkillType::SkillType SkillInfo::type |
Definition at line 77 of file skillinfo.h.
Referenced by isUsable(), and update().
std::string SkillInfo::useButton |
Definition at line 54 of file skillinfo.h.
bool SkillInfo::useTextParameter |
Definition at line 83 of file skillinfo.h.
Visible SkillInfo::visible |
Definition at line 81 of file skillinfo.h.
Referenced by update().
int SkillInfo::x |
Definition at line 75 of file skillinfo.h.
Referenced by SkillRectangleListBox::draw(), SkillRectangleListBox::getSelectionByEvent(), SkillRectangleListBox::getSkillByEvent(), and SkillRectangleListBox::SkillRectangleListBox().
int SkillInfo::y |
Definition at line 76 of file skillinfo.h.
Referenced by SkillRectangleListBox::draw(), SkillRectangleListBox::getSelectionByEvent(), SkillRectangleListBox::getSkillByEvent(), and SkillRectangleListBox::SkillRectangleListBox().