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 /sigscript | |
| parent | 07e2bb39f2399c7a68c6cc8b511f0e5a2ac34565 (diff) | |
| download | sigen-f5a98518420c74e8acc421879689faf948235e29.tar.gz sigen-f5a98518420c74e8acc421879689faf948235e29.tar.xz sigen-f5a98518420c74e8acc421879689faf948235e29.zip | |
Removed the amount variable from CoinListObject
Diffstat (limited to 'sigscript')
| -rw-r--r-- | sigscript/CoinListObjectWrapper.cpp | 7 | ||||
| -rw-r--r-- | sigscript/CoinListObjectWrapper.h | 1 |
2 files changed, 0 insertions, 8 deletions
diff --git a/sigscript/CoinListObjectWrapper.cpp b/sigscript/CoinListObjectWrapper.cpp index c04e90f1..bde11143 100644 --- a/sigscript/CoinListObjectWrapper.cpp +++ b/sigscript/CoinListObjectWrapper.cpp @@ -64,13 +64,6 @@ Sigscript::SpeciesWrapper* Sigscript::CoinListObjectWrapper::speciesObject() return NULL; } -int Sigscript::CoinListObjectWrapper::amount() const -{ - if (sigmod()->singlePlayer() && hasValueOfType<int>("amount")) - return valueOfType<int>("amount"); - return m_object->amount(); -} - int Sigscript::CoinListObjectWrapper::cost() const { if (sigmod()->singlePlayer() && hasValueOfType<int>("cost")) diff --git a/sigscript/CoinListObjectWrapper.h b/sigscript/CoinListObjectWrapper.h index 618cb9fd..0443741b 100644 --- a/sigscript/CoinListObjectWrapper.h +++ b/sigscript/CoinListObjectWrapper.h @@ -43,7 +43,6 @@ class SIGSCRIPT_EXPORT CoinListObjectWrapper : public ObjectWrapper Q_SCRIPTABLE Sigmod::CoinListObject::Type type() const; Q_SCRIPTABLE ItemWrapper* itemObject(); Q_SCRIPTABLE SpeciesWrapper* speciesObject(); - Q_SCRIPTABLE int amount() const; Q_SCRIPTABLE int cost() const; private: CoinListObjectWrapper(const Sigmod::CoinListObject* object, CoinListWrapper* parent); |
