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);
}
Exemple #4
0
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);
}