MCPcopy Create free account
hub / github.com/OpenDungeons/OpenDungeons / ~MiniMapDrawnFull

Method ~MiniMapDrawnFull

source/gamemap/MiniMapDrawnFull.cpp:428–451  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

426}
427
428MiniMapDrawnFull::~MiniMapDrawnFull()
429{
430 for(MiniMapDrawnFullTileStateListener* listener : mTileStateListeners)
431 {
432 for(uint32_t xxx = listener->mTileXMin; xxx < listener->mTileXMax; ++xxx)
433 {
434 for(uint32_t yyy = listener->mTileYMin; yyy < listener->mTileYMax; ++yyy)
435 {
436 Tile* tile = mGameMap.getTile(xxx, yyy);
437 if(tile == nullptr)
438 continue;
439
440 tile->removeTileStateListener(*listener);
441 }
442 }
443 delete listener;
444 }
445 mTileStateListeners.clear();
446
447 mMiniMapWindow->setProperty("Image", "");
448 Ogre::TextureManager::getSingletonPtr()->remove("miniMapOgreTexture");
449 CEGUI::ImageManager::getSingletonPtr()->destroy("MiniMapImageset");
450 CEGUI::System::getSingletonPtr()->getRenderer()->destroyTexture("miniMapTextureGui");
451}
452
453Ogre::Vector2 MiniMapDrawnFull::camera_2dPositionFromClick(int xx, int yy)
454{

Callers

nothing calls this directly

Calls 3

clearMethod · 0.80
getTileMethod · 0.45

Tested by

no test coverage detected