void ModelContainerView::showMap(int pMapId, int x, int y) { MapTree* mt = iVMapManager->getInstanceMapTree(pMapId); std::string dirFileName = iVMapManager->getDirFileName(pMapId); if(!mt->hasDirFile(dirFileName)) { dirFileName = iVMapManager->getDirFileName(pMapId, x, y); } showMap(mt,dirFileName); iInstanceId = pMapId; }
/* * Loads the map for the given mapid, x and y value. * * * */ void ModelContainerView::parseVMap (int pMapId, int x, int y) { MapTree* mt = iVMapManager.getInstanceMapTree (pMapId); std::string dirFileName = iVMapManager.getDirFileName (pMapId, x, y); if (!mt->hasDirFile (dirFileName)) dirFileName = iVMapManager.getDirFileName (pMapId); // This will add all models in map. parseVMap (mt, dirFileName); }