From 7f1b56b96c812d8b4ff6121afc933c30edae7f47 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Thu, 19 Mar 2009 18:53:46 -0400 Subject: Add position to MapEffect and MapWarp --- sigscript/MapEffectWrapper.cpp | 5 +++++ sigscript/MapEffectWrapper.h | 1 + sigscript/MapWarpWrapper.cpp | 5 +++++ sigscript/MapWarpWrapper.h | 1 + 4 files changed, 12 insertions(+) (limited to 'sigscript') 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; -- cgit