diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2009-02-24 16:33:13 -0500 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2009-02-24 16:33:13 -0500 |
| commit | fd874f8a1e413b769245aa61a866bd536a551c3c (patch) | |
| tree | af66c155cc313e9ca777ba8a332c1133a52b3d9c /sigscript/MapWildListWrapper.cpp | |
| parent | eb7d51f42aa1790be6b496a0e1882d6a9646e1c8 (diff) | |
| download | sigen-fd874f8a1e413b769245aa61a866bd536a551c3c.tar.gz sigen-fd874f8a1e413b769245aa61a866bd536a551c3c.tar.xz sigen-fd874f8a1e413b769245aa61a866bd536a551c3c.zip | |
Fixed up sigscript namespacing in sources
Diffstat (limited to 'sigscript/MapWildListWrapper.cpp')
| -rw-r--r-- | sigscript/MapWildListWrapper.cpp | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/sigscript/MapWildListWrapper.cpp b/sigscript/MapWildListWrapper.cpp index bb7505f6..e2e5b070 100644 --- a/sigscript/MapWildListWrapper.cpp +++ b/sigscript/MapWildListWrapper.cpp @@ -25,7 +25,11 @@ // Sigmod includes #include <sigmod/MapWildList.h> -Sigscript::MapWildListWrapper* Sigscript::MapWildListWrapper::create(const Sigmod::MapWildList* wildList, MapWrapper* parent) +using namespace Sigcore; +using namespace Sigmod; +using namespace Sigscript; + +MapWildListWrapper* MapWildListWrapper::create(const MapWildList* wildList, MapWrapper* parent) { Signature sig = Signature(parent, Subsignature(wildList->className(), wildList->id())); if (!m_instances.contains(sig)) @@ -33,31 +37,31 @@ Sigscript::MapWildListWrapper* Sigscript::MapWildListWrapper::create(const Sigmo return qobject_cast<MapWildListWrapper*>(m_instances[sig]); } -Sigscript::MapWildListWrapper::MapWildListWrapper(const Sigmod::MapWildList* wildList, MapWrapper* parent) : +MapWildListWrapper::MapWildListWrapper(const MapWildList* wildList, MapWrapper* parent) : ObjectWrapper(wildList, parent), m_wildList(wildList) { } -Sigcore::Hat<Sigscript::MapWildListEncounterWrapper*> Sigscript::MapWildListWrapper::encounterHat() +Hat<MapWildListEncounterWrapper*> MapWildListWrapper::encounterHat() { - Sigcore::Hat<MapWildListEncounterWrapper*> hat; + Hat<MapWildListEncounterWrapper*> hat; for (int i = 0; i < encounterCount(); ++i) hat.add(encounter(i), encounter(i)->weight()); return hat; } -QString Sigscript::MapWildListWrapper::name() const +QString MapWildListWrapper::name() const { return m_wildList->name(); } -Sigscript::MapWildListEncounterWrapper* Sigscript::MapWildListWrapper::encounter(const int index) +MapWildListEncounterWrapper* MapWildListWrapper::encounter(const int index) { return MapWildListEncounterWrapper::create(m_wildList->encounter(index), this); } -int Sigscript::MapWildListWrapper::encounterCount() const +int MapWildListWrapper::encounterCount() const { return m_wildList->encounterCount(); } |
