diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2008-11-25 18:59:23 -0500 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2008-11-25 18:59:23 -0500 |
| commit | f5a98518420c74e8acc421879689faf948235e29 (patch) | |
| tree | 578e5f8631219690ccc1a10df97f2ef841b64fd2 /sigmod/CoinListObject.cpp | |
| parent | 07e2bb39f2399c7a68c6cc8b511f0e5a2ac34565 (diff) | |
| download | sigen-f5a98518420c74e8acc421879689faf948235e29.tar.gz sigen-f5a98518420c74e8acc421879689faf948235e29.tar.xz sigen-f5a98518420c74e8acc421879689faf948235e29.zip | |
Removed the amount variable from CoinListObject
Diffstat (limited to 'sigmod/CoinListObject.cpp')
| -rw-r--r-- | sigmod/CoinListObject.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/sigmod/CoinListObject.cpp b/sigmod/CoinListObject.cpp index e380e016..2cd944ae 100644 --- a/sigmod/CoinListObject.cpp +++ b/sigmod/CoinListObject.cpp @@ -35,7 +35,6 @@ Sigmod::CoinListObject::CoinListObject(const CoinList* parent, const int id) : Object(parent, id), m_type(Item), m_object(INT_MAX), - m_amount(1), m_cost(0) { } @@ -57,7 +56,6 @@ void Sigmod::CoinListObject::validate() { TEST_BEGIN(); TEST(setObject, object); - TEST(setAmount, amount); TEST_END(); } @@ -66,7 +64,6 @@ void Sigmod::CoinListObject::load(const QDomElement& xml) LOAD_BEGIN(); LOAD(type); LOAD(object); - LOAD(amount); LOAD(cost); } @@ -75,7 +72,6 @@ QDomElement Sigmod::CoinListObject::save() const SAVE_CREATE(); SAVE(type); SAVE(object); - SAVE(amount); SAVE(cost); return xml; } @@ -93,14 +89,6 @@ void Sigmod::CoinListObject::setObject(const int object) CHECK(object); } -void Sigmod::CoinListObject::setAmount(const int amount) -{ - if (!amount || ((Species == m_type) && (1 < amount))) - emit(error(bounds("amount"))); - else - CHECK(amount); -} - void Sigmod::CoinListObject::setCost(const int cost) { CHECK(cost); @@ -116,11 +104,6 @@ int Sigmod::CoinListObject::object() const return m_object; } -int Sigmod::CoinListObject::amount() const -{ - return m_amount; -} - int Sigmod::CoinListObject::cost() const { return m_cost; @@ -132,7 +115,6 @@ Sigmod::CoinListObject& Sigmod::CoinListObject::operator=(const CoinListObject& return *this; COPY(type); COPY(object); - COPY(amount); COPY(cost); return *this; } |
