summaryrefslogtreecommitdiff
path: root/src/gui/widgets/skillinfo.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-05 12:43:27 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-06 01:18:57 +0300
commit617feef91574c9ad6dc6dcddf910566f394c9981 (patch)
tree8b428e1c79081519a921d0d3b0b4ff67c52cd934 /src/gui/widgets/skillinfo.h
parenta165e5d78010cd1cfedc8bdc320fd7084d58ba2b (diff)
downloadmv-617feef91574c9ad6dc6dcddf910566f394c9981.tar.gz
mv-617feef91574c9ad6dc6dcddf910566f394c9981.tar.bz2
mv-617feef91574c9ad6dc6dcddf910566f394c9981.tar.xz
mv-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.h9
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;