summaryrefslogtreecommitdiff
path: root/src/gui/skilldialog.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-08-28 01:59:04 +0300
committerAndrei Karas <akaras@inbox.ru>2012-08-28 01:59:04 +0300
commitc79403e1341ac533df1771b866d1f5cee15e12b5 (patch)
tree5bed6dfb44f7fce0432bd7a7a28d2d23db07ce80 /src/gui/skilldialog.h
parent7c79aa2b8e484319e3e511fa21db6d2448347024 (diff)
downloadmv-c79403e1341ac533df1771b866d1f5cee15e12b5.tar.gz
mv-c79403e1341ac533df1771b866d1f5cee15e12b5.tar.bz2
mv-c79403e1341ac533df1771b866d1f5cee15e12b5.tar.xz
mv-c79403e1341ac533df1771b866d1f5cee15e12b5.zip
Add const to more classes.
Diffstat (limited to 'src/gui/skilldialog.h')
-rw-r--r--src/gui/skilldialog.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/gui/skilldialog.h b/src/gui/skilldialog.h
index d5c332740..09781d4ac 100644
--- a/src/gui/skilldialog.h
+++ b/src/gui/skilldialog.h
@@ -71,7 +71,7 @@ struct SkillInfo
void update();
- void draw(Graphics *graphics, int y, int width);
+ void draw(Graphics *const graphics, const int y, const int width);
};
typedef std::vector<SkillInfo*> SkillList;
@@ -96,7 +96,7 @@ class SkillDialog : public Window, public gcn::ActionListener
/**
* Update the given skill's display
*/
- std::string update(int id);
+ std::string update(const int id);
/**
* Update other parts of the display
@@ -105,9 +105,10 @@ class SkillDialog : public Window, public gcn::ActionListener
void loadSkills(const std::string &file);
- bool updateSkill(int id, int range, bool modifiable);
+ bool updateSkill(const int id, const int range, const bool modifiable);
- void addSkill(int id, int level, int range, bool modifiable);
+ void addSkill(const int id, const int level, const int range,
+ const bool modifiable);
SkillInfo* getSkill(int id);
@@ -116,7 +117,7 @@ class SkillDialog : public Window, public gcn::ActionListener
void widgetResized(const gcn::Event &event);
- void useItem(int itemId);
+ void useItem(const int itemId);
void updateTabSelection();