summaryrefslogtreecommitdiffstats
path: root/pokescripting/MapWildListWrapper.h
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2008-08-05 06:10:55 +0000
committerBen Boeckel <MathStuf@gmail.com>2008-08-05 06:10:55 +0000
commitcf49a16b29ac412cfea125f7216a0e51e79aa4de (patch)
treefc3eb0271f3de0d7900c2a33ab5eafa259d8d250 /pokescripting/MapWildListWrapper.h
parent56b91df6010a9f3d304438cf95816399a6e46622 (diff)
downloadsigen-cf49a16b29ac412cfea125f7216a0e51e79aa4de.tar.gz
sigen-cf49a16b29ac412cfea125f7216a0e51e79aa4de.tar.xz
sigen-cf49a16b29ac412cfea125f7216a0e51e79aa4de.zip
[FIX] List members of pokemod classes now can be returned in their entirety
[FIX] Reworked pokescripting for ease of use [FIX] Now (selected) pokemod values can be overridden in pokescripting git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@237 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokescripting/MapWildListWrapper.h')
-rw-r--r--pokescripting/MapWildListWrapper.h29
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