QStringList SiteHandler::getStringList(){ QStringList list(getSiteMap().uniqueKeys()); return list; }
Site SiteHandler::getSiteFromString(QString text){ return getSiteMap().value(text); }
QString SiteHandler::getSiteString(Site site){ return getSiteMap().key(site); }
PatchMap<1>* Cartographer::getSiteMap(const UnitType *ut, const Vec2i &pos, CardinalDir facing, Unit *worker) { PF_TRACE(); BuildSiteMapKey key(ut, pos, facing, worker->getCurrField(), worker->getType()->getSize()); return getSiteMap(key); }