summaryrefslogtreecommitdiffstats
path: root/pokescripting/MapEffectWrapper.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/MapEffectWrapper.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/MapEffectWrapper.h')
-rw-r--r--pokescripting/MapEffectWrapper.h28
1 files changed, 5 insertions, 23 deletions
diff --git a/pokescripting/MapEffectWrapper.h b/pokescripting/MapEffectWrapper.h
index a4fbb19f..c053937f 100644
--- a/pokescripting/MapEffectWrapper.h
+++ b/pokescripting/MapEffectWrapper.h
@@ -20,13 +20,15 @@
// Pokescripting includes
#include "ObjectWrapper.h"
-#include "SkinWrapper.h"
// Pokemod includes
#include "../pokemod/MapEffect.h"
namespace Pokescripting
{
+// Forward declarations
+class SkinWrapper;
+
class POKESCRIPTING_EXPORT MapEffectWrapper : public ObjectWrapper
{
Q_OBJECT
@@ -40,36 +42,16 @@ class POKESCRIPTING_EXPORT MapEffectWrapper : public ObjectWrapper
}
public slots:
QString name() const;
+ QPoint coordinate() const;
SkinWrapper* skin();
bool isGhost() const;
+ Pokemod::Script script() const;
private:
MapEffectWrapper(const Pokemod::MapEffect* effect, QObject* parent);
MapEffectWrapper& operator=(const MapEffectWrapper& rhs);
const Pokemod::MapEffect* m_effect;
};
-
-inline MapEffectWrapper::MapEffectWrapper(const Pokemod::MapEffect* effect, QObject* parent) :
- ObjectWrapper(effect, parent),
- m_effect(effect)
-{
-}
-
-inline QString MapEffectWrapper::name() const
-{
- return m_effect->name();
-}
-
-inline Pokescripting::SkinWrapper* MapEffectWrapper::skin()
-{
- return SkinWrapper::create(pokemod()->skinById(m_effect->skin()), this);
-}
-
-inline bool MapEffectWrapper::isGhost() const
-{
- return m_effect->isGhost();
-}
-
}
#endif