summaryrefslogtreecommitdiffstats
path: root/pokescripting/MapWarpWrapper.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/MapWarpWrapper.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/MapWarpWrapper.h')
-rw-r--r--pokescripting/MapWarpWrapper.h29
1 files changed, 1 insertions, 28 deletions
diff --git a/pokescripting/MapWarpWrapper.h b/pokescripting/MapWarpWrapper.h
index 8bc3a7da..aefbd18b 100644
--- a/pokescripting/MapWarpWrapper.h
+++ b/pokescripting/MapWarpWrapper.h
@@ -22,7 +22,6 @@
#include "ObjectWrapper.h"
// Pokemod includes
-#include "../pokemod/Map.h"
#include "../pokemod/MapWarp.h"
namespace Pokescripting
@@ -43,39 +42,13 @@ class POKESCRIPTING_EXPORT MapWarpWrapper : public ObjectWrapper
QPoint coordinate() const;
int type() const;
MapWarpWrapper* toWarp();
+ Pokemod::Script script() const;
private:
MapWarpWrapper(const Pokemod::MapWarp* warp, QObject* parent);
MapWarpWrapper& operator=(const MapWarpWrapper& rhs);
const Pokemod::MapWarp* m_warp;
};
-
-inline MapWarpWrapper::MapWarpWrapper(const Pokemod::MapWarp* warp, QObject* parent) :
- ObjectWrapper(warp, parent),
- m_warp(warp)
-{
-}
-
-inline QString MapWarpWrapper::name() const
-{
- return m_warp->name();
-}
-
-inline QPoint MapWarpWrapper::coordinate() const
-{
- return m_warp->coordinate();
-}
-
-inline int MapWarpWrapper::type() const
-{
- return m_warp->type();
-}
-
-inline MapWarpWrapper* MapWarpWrapper::toWarp()
-{
- return new MapWarpWrapper(pokemod()->mapById(m_warp->toMap())->warpById(m_warp->toWarp()), this);
-}
-
}
#endif