summaryrefslogtreecommitdiffstats
path: root/sigscript/MapTileWrapper.cpp
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2009-02-24 16:33:13 -0500
committerBen Boeckel <MathStuf@gmail.com>2009-02-24 16:33:13 -0500
commitfd874f8a1e413b769245aa61a866bd536a551c3c (patch)
treeaf66c155cc313e9ca777ba8a332c1133a52b3d9c /sigscript/MapTileWrapper.cpp
parenteb7d51f42aa1790be6b496a0e1882d6a9646e1c8 (diff)
downloadsigen-fd874f8a1e413b769245aa61a866bd536a551c3c.tar.gz
sigen-fd874f8a1e413b769245aa61a866bd536a551c3c.tar.xz
sigen-fd874f8a1e413b769245aa61a866bd536a551c3c.zip
Fixed up sigscript namespacing in sources
Diffstat (limited to 'sigscript/MapTileWrapper.cpp')
-rw-r--r--sigscript/MapTileWrapper.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/sigscript/MapTileWrapper.cpp b/sigscript/MapTileWrapper.cpp
index ca79c780..8c36e0e6 100644
--- a/sigscript/MapTileWrapper.cpp
+++ b/sigscript/MapTileWrapper.cpp
@@ -25,7 +25,10 @@
// Sigmod includes
#include <sigmod/MapTile.h>
-Sigscript::MapTileWrapper* Sigscript::MapTileWrapper::create(const Sigmod::MapTile* tile, MapWrapper* parent)
+using namespace Sigmod;
+using namespace Sigscript;
+
+MapTileWrapper* MapTileWrapper::create(const MapTile* tile, MapWrapper* parent)
{
Signature sig = Signature(parent, Subsignature(tile->className(), tile->id()));
if (!m_instances.contains(sig))
@@ -33,24 +36,24 @@ Sigscript::MapTileWrapper* Sigscript::MapTileWrapper::create(const Sigmod::MapTi
return qobject_cast<MapTileWrapper*>(m_instances[sig]);
}
-Sigscript::MapTileWrapper::MapTileWrapper(const Sigmod::MapTile* tile, MapWrapper* parent) :
+MapTileWrapper::MapTileWrapper(const MapTile* tile, MapWrapper* parent) :
ObjectWrapper(tile, parent),
m_tile(tile)
{
}
-Sigscript::TileWrapper* Sigscript::MapTileWrapper::tile()
+TileWrapper* MapTileWrapper::tile()
{
return game()->tile(m_tile->tile());
}
-QPoint Sigscript::MapTileWrapper::position() const
+QPoint MapTileWrapper::position() const
{
ALLOW_OVERRIDE_SO(tile, QPoint, position);
return m_tile->position();
}
-int Sigscript::MapTileWrapper::zIndex() const
+int MapTileWrapper::zIndex() const
{
ALLOW_OVERRIDE_SO(tile, int, zIndex);
return m_tile->zIndex();