本文整理汇总了C++中MapTree::unloadMap方法的典型用法代码示例。如果您正苦于以下问题:C++ MapTree::unloadMap方法的具体用法?C++ MapTree::unloadMap怎么用?C++ MapTree::unloadMap使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MapTree
的用法示例。
在下文中一共展示了MapTree::unloadMap方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: unloadMap
void VMapManager::unloadMap(unsigned int pMapId)
{
if( m_maps[pMapId] != NULL )
{
MapTree* instanceTree = m_maps[ pMapId ];
std::string dirFileName = getDirFileName(pMapId);
instanceTree->unloadMap(dirFileName, 0);
if(instanceTree->size() == 0)
{
m_maps[pMapId]=NULL;
delete instanceTree;
}
}
}
示例2: unloadMap
void VMapManager::unloadMap(unsigned int pMapId)
{
if(iInstanceMapTrees.containsKey(pMapId))
{
MapTree* instanceTree = iInstanceMapTrees.get(pMapId);
std::string dirFileName = getDirFileName(pMapId);
instanceTree->unloadMap(dirFileName, 0, true);
if(instanceTree->size() == 0)
{
iInstanceMapTrees.remove(pMapId);
delete instanceTree;
}
Command c = Command();
c.fillUnloadTileCmd(pMapId);
iCommandLogger.appendCmd(c);
}
}
示例3: _unloadMap
void VMapManager::_unloadMap(unsigned int pMapId, int x, int y)
{
if(iInstanceMapTrees.containsKey(pMapId))
{
MapTree* instanceTree = iInstanceMapTrees.get(pMapId);
std::string dirFileName;
if(iMapsSplitIntoTiles.containsKey(pMapId))
{
dirFileName = getDirFileName(pMapId,x,y);
}
else
{
dirFileName = getDirFileName(pMapId);
}
unsigned int mapTileIdent = MAP_TILE_IDENT(x,y);
instanceTree->unloadMap(dirFileName, mapTileIdent);
if(instanceTree->size() == 0)
{
iInstanceMapTrees.remove(pMapId);
delete instanceTree;
}
}
}