summaryrefslogtreecommitdiffstats
path: root/pokescripting/CoinListObjectWrapper.h
diff options
context:
space:
mode:
Diffstat (limited to 'pokescripting/CoinListObjectWrapper.h')
-rw-r--r--pokescripting/CoinListObjectWrapper.h42
1 files changed, 4 insertions, 38 deletions
diff --git a/pokescripting/CoinListObjectWrapper.h b/pokescripting/CoinListObjectWrapper.h
index 117b6d11..1b86840f 100644
--- a/pokescripting/CoinListObjectWrapper.h
+++ b/pokescripting/CoinListObjectWrapper.h
@@ -19,15 +19,17 @@
#define __POKESCRIPTING_COINLISTOBJECTWRAPPER__
// Pokescripting includes
-#include "ItemWrapper.h"
#include "ObjectWrapper.h"
-#include "SpeciesWrapper.h"
// Pokemod includes
#include "../pokemod/CoinListObject.h"
namespace Pokescripting
{
+// Forward declarations
+class ItemWrapper;
+class SpeciesWrapper;
+
class POKESCRIPTING_EXPORT CoinListObjectWrapper : public ObjectWrapper
{
Q_OBJECT
@@ -51,42 +53,6 @@ class POKESCRIPTING_EXPORT CoinListObjectWrapper : public ObjectWrapper
const Pokemod::CoinListObject* m_object;
};
-
-inline CoinListObjectWrapper::CoinListObjectWrapper(const Pokemod::CoinListObject* object, QObject* parent) :
- ObjectWrapper(object, parent),
- m_object(object)
-{
-}
-
-inline int CoinListObjectWrapper::type() const
-{
- return m_object->type();
-}
-
-inline ItemWrapper* CoinListObjectWrapper::itemObject()
-{
- if (m_object->type() == Pokemod::CoinListObject::Item)
- return ItemWrapper::create(pokemod()->itemById(m_object->object()), this);
- return NULL;
-}
-
-inline SpeciesWrapper* CoinListObjectWrapper::speciesObject()
-{
- if (m_object->type() == Pokemod::CoinListObject::Species)
- return SpeciesWrapper::create(pokemod()->speciesById(m_object->object()), this);
- return NULL;
-}
-
-inline int CoinListObjectWrapper::amount() const
-{
- return m_object->amount();
-}
-
-inline int CoinListObjectWrapper::cost() const
-{
- return m_object->cost();
-}
-
}
#endif