summaryrefslogtreecommitdiff
path: root/src/shopitem.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-09-03 21:58:08 +0300
committerAndrei Karas <akaras@inbox.ru>2012-09-04 03:06:57 +0300
commit866a71ffd576fd10c4e309195016d86f0c8ed635 (patch)
tree21bbec175afc181cada529598267d62f12fcb671 /src/shopitem.h
parentebecb0cf42f2066943908fa158ac91527e0e6629 (diff)
downloadmanaplus-866a71ffd576fd10c4e309195016d86f0c8ed635.tar.gz
manaplus-866a71ffd576fd10c4e309195016d86f0c8ed635.tar.bz2
manaplus-866a71ffd576fd10c4e309195016d86f0c8ed635.tar.xz
manaplus-866a71ffd576fd10c4e309195016d86f0c8ed635.zip
Add const to more classes.
Diffstat (limited to 'src/shopitem.h')
-rw-r--r--src/shopitem.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/shopitem.h b/src/shopitem.h
index 61d23a4ab..0608d0c4a 100644
--- a/src/shopitem.h
+++ b/src/shopitem.h
@@ -42,8 +42,9 @@ class ShopItem : public Item
* @param quantity number of available copies of the item
* @param price price of the item
*/
- ShopItem(int inventoryIndex, int id, unsigned char color,
- int quantity, int price);
+ ShopItem(const int inventoryIndex, const int id,
+ const unsigned char color,
+ const int quantity, const int price);
/**
* Constructor. Creates a new ShopItem. Inventory index will be set to
@@ -52,7 +53,7 @@ class ShopItem : public Item
* @param id the id of the item
* @param price price of the item
*/
- ShopItem(int id, unsigned char color, int price);
+ ShopItem(const int id, const unsigned char color, const int price);
/**
* Destructor.
@@ -65,7 +66,7 @@ class ShopItem : public Item
* @param inventoryIndex the inventory index of the item
* @param quantity number of available copies of the item
*/
- void addDuplicate(int inventoryIndex, int quantity);
+ void addDuplicate(const int inventoryIndex, const int quantity);
/**
* Add a duplicate. Id and price will be taken from this item.
@@ -108,7 +109,7 @@ class ShopItem : public Item
*
* @return the amount, that actually was sold.
*/
- int sellCurrentDuplicate(int quantity);
+ int sellCurrentDuplicate(const int quantity);
/**
* Gets the price of the item.