diff options
author | Ben Boeckel <MathStuf@gmail.com> | 2009-05-28 22:03:56 -0400 |
---|---|---|
committer | Ben Boeckel <MathStuf@gmail.com> | 2009-05-28 22:03:56 -0400 |
commit | 327d403983184d90a3b25820bf112dd12c732814 (patch) | |
tree | 2a5fd400c744ab1e9e5ceda3650ac623993c1f77 /sigscript | |
parent | 3fb49947b429e5f6dd7e6e0684d9b545d9442917 (diff) | |
download | sigen-327d403983184d90a3b25820bf112dd12c732814.tar.gz sigen-327d403983184d90a3b25820bf112dd12c732814.tar.xz sigen-327d403983184d90a3b25820bf112dd12c732814.zip |
Add world flag to MapWrapper
Diffstat (limited to 'sigscript')
-rw-r--r-- | sigscript/MapWrapper.cpp | 5 | ||||
-rw-r--r-- | sigscript/MapWrapper.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/sigscript/MapWrapper.cpp b/sigscript/MapWrapper.cpp index beca24cb..a4d39586 100644 --- a/sigscript/MapWrapper.cpp +++ b/sigscript/MapWrapper.cpp @@ -88,6 +88,11 @@ int MapWrapper::height() const return m_map->height(); } +bool MapWrapper::isWorld() const +{ + return m_map->isWorld(); +} + MapEffectWrapper* MapWrapper::effect(const QString& name) { for (int i = 0; i < m_map->effectCount(); ++i) diff --git a/sigscript/MapWrapper.h b/sigscript/MapWrapper.h index fb3fe38f..a370c4e5 100644 --- a/sigscript/MapWrapper.h +++ b/sigscript/MapWrapper.h @@ -50,6 +50,7 @@ class SIGSCRIPT_EXPORT MapWrapper : public ObjectWrapper Q_SCRIPTABLE QString name() const; Q_SCRIPTABLE int width() const; Q_SCRIPTABLE int height() const; + Q_SCRIPTABLE bool isWorld() const; Q_SCRIPTABLE MapEffectWrapper* effect(const QString& name); Q_SCRIPTABLE QList<MapTileWrapper*> tiles(); |