diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-05 12:43:27 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-06 01:18:57 +0300 |
commit | 617feef91574c9ad6dc6dcddf910566f394c9981 (patch) | |
tree | 8b428e1c79081519a921d0d3b0b4ff67c52cd934 /src/gui/widgets/skillinfo.h | |
parent | a165e5d78010cd1cfedc8bdc320fd7084d58ba2b (diff) | |
download | manaverse-617feef91574c9ad6dc6dcddf910566f394c9981.tar.gz manaverse-617feef91574c9ad6dc6dcddf910566f394c9981.tar.bz2 manaverse-617feef91574c9ad6dc6dcddf910566f394c9981.tar.xz manaverse-617feef91574c9ad6dc6dcddf910566f394c9981.zip |
Enable skill use button based on skill type.
Diffstat (limited to 'src/gui/widgets/skillinfo.h')
-rw-r--r-- | src/gui/widgets/skillinfo.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/gui/widgets/skillinfo.h b/src/gui/widgets/skillinfo.h index 10d6191df..aa92b4bcb 100644 --- a/src/gui/widgets/skillinfo.h +++ b/src/gui/widgets/skillinfo.h @@ -65,10 +65,15 @@ struct SkillInfo final void update(); - SkillData *getData(const int level) const; - SkillData *getData1(const int level) const; + SkillData *getData(const int level) const A_WARN_UNUSED; + SkillData *getData1(const int level) const A_WARN_UNUSED; void addData(const int level, SkillData *const data); + + bool isUsable() const A_WARN_UNUSED + { + return type == SkillType::Attack || type == SkillType::Self; + } }; typedef std::vector<SkillInfo*> SkillList; |