summaryrefslogtreecommitdiffstats
path: root/sigmod/Item.h
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2009-07-19 13:50:43 -0400
committerBen Boeckel <MathStuf@gmail.com>2009-07-19 13:50:43 -0400
commitdffac4ac7cb7f62619bf1d0b356b17f5791fa765 (patch)
treed7f05be81da9429e7f2d9736bae58cd0647655f8 /sigmod/Item.h
parent51f1d2c9d6c2a2b89821143de8fc3bce95d8f164 (diff)
downloadsigen-dffac4ac7cb7f62619bf1d0b356b17f5791fa765.tar.gz
sigen-dffac4ac7cb7f62619bf1d0b356b17f5791fa765.tar.xz
sigen-dffac4ac7cb7f62619bf1d0b356b17f5791fa765.zip
Remove sellable from item; set in sellPrice as -1
Diffstat (limited to 'sigmod/Item.h')
-rw-r--r--sigmod/Item.h16
1 files changed, 1 insertions, 15 deletions
diff --git a/sigmod/Item.h b/sigmod/Item.h
index df477f10..905c81be 100644
--- a/sigmod/Item.h
+++ b/sigmod/Item.h
@@ -101,19 +101,13 @@ class SIGMOD_EXPORT Item : public Object
*/
void setName(const QString& name);
/**
- * Sets whether the item is can be sold or not. If set to \p true, the item can be sold at a \link Store store \endlink.
- *
- * \param sellable Whether the item can be sold or not.
- */
- void setSellable(const bool sellable);
- /**
* Sets the \link ItemType type \endlink of the item.
*
* \param type The id of the type the item is.
*/
void setType(const int type);
/**
- * Sets how much the item is sold for at a \link Store store \endlink.
+ * Sets how much the item is sold for at a \link Store store \endlink. If set to -1, it cannot be sold.
*
* \param price The price of the item.
*/
@@ -160,12 +154,6 @@ class SIGMOD_EXPORT Item : public Object
*/
QString name() const;
/**
- * \sa setSellable
- *
- * \return \p true if the item can be sold at a store, \p false otherwise.
- */
- bool sellable() const;
- /**
* \sa setType
*
* \return The id of the \link ItemType type \endlink of the item.
@@ -203,7 +191,6 @@ class SIGMOD_EXPORT Item : public Object
Sigcore::Script script() const;
bool nameCheck(const QString& name) const;
- bool sellableCheck(const bool sellable) const;
bool typeCheck(const int type) const;
bool priceCheck(const int price) const;
bool sellPriceCheck(const int sellPrice) const;
@@ -214,7 +201,6 @@ class SIGMOD_EXPORT Item : public Object
Item& operator=(const Item& rhs);
private:
QString m_name;
- bool m_sellable;
int m_type;
int m_price;
int m_sellPrice;