summaryrefslogtreecommitdiff
path: root/src/gui/outfitwindow.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-08-27 21:18:46 +0300
committerAndrei Karas <akaras@inbox.ru>2012-08-27 21:44:17 +0300
commit7c79aa2b8e484319e3e511fa21db6d2448347024 (patch)
tree3c4fb4e72414dd8c0d93401a6bf2cc86b65a34a0 /src/gui/outfitwindow.h
parentde476bb95242e10c833394ef007728072eabe60f (diff)
downloadManaVerse-7c79aa2b8e484319e3e511fa21db6d2448347024.tar.gz
ManaVerse-7c79aa2b8e484319e3e511fa21db6d2448347024.tar.bz2
ManaVerse-7c79aa2b8e484319e3e511fa21db6d2448347024.tar.xz
ManaVerse-7c79aa2b8e484319e3e511fa21db6d2448347024.zip
Add const to more classes.
Diffstat (limited to 'src/gui/outfitwindow.h')
-rw-r--r--src/gui/outfitwindow.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/gui/outfitwindow.h b/src/gui/outfitwindow.h
index 9aae112e3..3d7bb33bc 100644
--- a/src/gui/outfitwindow.h
+++ b/src/gui/outfitwindow.h
@@ -65,9 +65,9 @@ class OutfitWindow : public Window, private gcn::ActionListener
void mouseReleased(gcn::MouseEvent &event);
- void load(bool oldConfig = false);
+ void load(const bool oldConfig = false);
- void setItemSelected(int itemId)
+ void setItemSelected(const int itemId)
{ mItemSelected = itemId; }
void setItemSelected(Item *item);
@@ -75,26 +75,26 @@ class OutfitWindow : public Window, private gcn::ActionListener
bool isItemSelected() const
{ return mItemSelected > 0; }
- void wearOutfit(int outfit, bool unwearEmpty = true,
- bool select = false);
+ void wearOutfit(const int outfit, const bool unwearEmpty = true,
+ const bool select = false);
- void copyOutfit(int outfit);
+ void copyOutfit(const int outfit);
- void copyOutfit(int src, int dst);
+ void copyOutfit(const int src, const int dst);
void copyFromEquiped();
- void copyFromEquiped(int dst);
+ void copyFromEquiped(const int dst);
- void unequipNotInOutfit(int outfit);
+ void unequipNotInOutfit(const int outfit) const;
void next();
void previous();
- void wearNextOutfit(bool all = false);
+ void wearNextOutfit(const bool all = false);
- void wearPreviousOutfit(bool all = false);
+ void wearPreviousOutfit(const bool all = false);
void wearAwayOutfit();
@@ -102,7 +102,7 @@ class OutfitWindow : public Window, private gcn::ActionListener
void showCurrentOutfit();
- std::string keyName(int number) A_PURE;
+ std::string keyName(const int number) const;
void clearCurrentOutfit();
@@ -115,7 +115,7 @@ class OutfitWindow : public Window, private gcn::ActionListener
CheckBox *mAwayOutfitCheck;
Label *mKeyLabel;
- int getIndexFromGrid(int pointX, int pointY) const;
+ int getIndexFromGrid(const int pointX, const int pointY) const;
int mBoxWidth;
int mBoxHeight;