summaryrefslogtreecommitdiffstats
path: root/sigscript
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2008-11-25 18:59:23 -0500
committerBen Boeckel <MathStuf@gmail.com>2008-11-25 18:59:23 -0500
commitf5a98518420c74e8acc421879689faf948235e29 (patch)
tree578e5f8631219690ccc1a10df97f2ef841b64fd2 /sigscript
parent07e2bb39f2399c7a68c6cc8b511f0e5a2ac34565 (diff)
downloadsigen-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.cpp7
-rw-r--r--sigscript/CoinListObjectWrapper.h1
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);