diff options
author | Ben Boeckel <MathStuf@gmail.com> | 2009-03-19 18:53:46 -0400 |
---|---|---|
committer | Ben Boeckel <MathStuf@gmail.com> | 2009-03-19 18:53:46 -0400 |
commit | 7f1b56b96c812d8b4ff6121afc933c30edae7f47 (patch) | |
tree | 46be731a27a46b649914aa68ec20dfe361df79c6 /sigscript | |
parent | 71b55b334827dfdfe565bfdc72263a945fb462ec (diff) | |
download | sigen-7f1b56b96c812d8b4ff6121afc933c30edae7f47.tar.gz sigen-7f1b56b96c812d8b4ff6121afc933c30edae7f47.tar.xz sigen-7f1b56b96c812d8b4ff6121afc933c30edae7f47.zip |
Add position to MapEffect and MapWarp
Diffstat (limited to 'sigscript')
-rw-r--r-- | sigscript/MapEffectWrapper.cpp | 5 | ||||
-rw-r--r-- | sigscript/MapEffectWrapper.h | 1 | ||||
-rw-r--r-- | sigscript/MapWarpWrapper.cpp | 5 | ||||
-rw-r--r-- | sigscript/MapWarpWrapper.h | 1 |
4 files changed, 12 insertions, 0 deletions
diff --git a/sigscript/MapEffectWrapper.cpp b/sigscript/MapEffectWrapper.cpp index 3bbacff9..7baca32d 100644 --- a/sigscript/MapEffectWrapper.cpp +++ b/sigscript/MapEffectWrapper.cpp @@ -48,6 +48,11 @@ QString MapEffectWrapper::name() const return m_effect->name(); } +QPoint MapEffectWrapper::position() const +{ + return m_effect->position(); +} + QPainterPath MapEffectWrapper::area() const { return m_effect->area(); diff --git a/sigscript/MapEffectWrapper.h b/sigscript/MapEffectWrapper.h index 0b9b5863..dd43e0bd 100644 --- a/sigscript/MapEffectWrapper.h +++ b/sigscript/MapEffectWrapper.h @@ -46,6 +46,7 @@ class SIGSCRIPT_EXPORT MapEffectWrapper : public ObjectWrapper static MapEffectWrapper* create(const Sigmod::MapEffect* effect, MapWrapper* parent); Q_SCRIPTABLE QString name() const; + Q_SCRIPTABLE QPoint position() const; Q_SCRIPTABLE QPainterPath area() const; Q_SCRIPTABLE SkinWrapper* skin(); Q_SCRIPTABLE bool isGhost() const; diff --git a/sigscript/MapWarpWrapper.cpp b/sigscript/MapWarpWrapper.cpp index ef79e0fb..6a644457 100644 --- a/sigscript/MapWarpWrapper.cpp +++ b/sigscript/MapWarpWrapper.cpp @@ -45,6 +45,11 @@ QString MapWarpWrapper::name() const return m_warp->name(); } +QPoint MapWarpWrapper::position() const +{ + return m_warp->position(); +} + QPainterPath MapWarpWrapper::area() const { return m_warp->area(); diff --git a/sigscript/MapWarpWrapper.h b/sigscript/MapWarpWrapper.h index 26520cac..83c3d802 100644 --- a/sigscript/MapWarpWrapper.h +++ b/sigscript/MapWarpWrapper.h @@ -37,6 +37,7 @@ class SIGSCRIPT_EXPORT MapWarpWrapper : public ObjectWrapper static MapWarpWrapper* create(const Sigmod::MapWarp* warp, MapWrapper* parent); Q_SCRIPTABLE QString name() const; + Q_SCRIPTABLE QPoint position() const; Q_SCRIPTABLE QPainterPath area() const; Q_SCRIPTABLE MapWarpWrapper* toWarp(); Q_SCRIPTABLE Sigcore::Script script() const; |