diff options
Diffstat (limited to 'pokescripting/MapWildListWrapper.h')
| -rw-r--r-- | pokescripting/MapWildListWrapper.h | 29 |
1 files changed, 6 insertions, 23 deletions
diff --git a/pokescripting/MapWildListWrapper.h b/pokescripting/MapWildListWrapper.h index b11a2346..56ecb721 100644 --- a/pokescripting/MapWildListWrapper.h +++ b/pokescripting/MapWildListWrapper.h @@ -19,14 +19,17 @@ #define __POKESCRIPTING_MAPWILDLISTWRAPPER__ // Pokescripting includes -#include "MapWildListEncounterWrapper.h" #include "ObjectWrapper.h" // Pokemod includes +#include "../pokemod/Hat.h" #include "../pokemod/MapWildList.h" namespace Pokescripting { +// Forward declarations +class MapWildListEncounterWrapper; + class POKESCRIPTING_EXPORT MapWildListWrapper : public ObjectWrapper { Q_OBJECT @@ -38,6 +41,8 @@ class POKESCRIPTING_EXPORT MapWildListWrapper : public ObjectWrapper m_instances[wildList->id()] = new MapWildListWrapper(wildList, parent); return qobject_cast<MapWildListWrapper*>(m_instances[wildList->id()]); } + + Pokemod::Hat<MapWildListEncounterWrapper*> encounterHat(); public slots: QString name() const; @@ -49,28 +54,6 @@ class POKESCRIPTING_EXPORT MapWildListWrapper : public ObjectWrapper const Pokemod::MapWildList* m_wildList; }; - -inline MapWildListWrapper::MapWildListWrapper(const Pokemod::MapWildList* wildList, QObject* parent) : - ObjectWrapper(wildList, parent), - m_wildList(wildList) -{ -} - -inline QString MapWildListWrapper::name() const -{ - return m_wildList->name(); -} - -inline MapWildListEncounterWrapper* MapWildListWrapper::encounter(const int index) -{ - return MapWildListEncounterWrapper::create(m_wildList->encounter(index), this); -} - -inline int MapWildListWrapper::encounterCount() const -{ - return m_wildList->encounterCount(); -} - } #endif |
