MCPcopy Create free account
hub / github.com/OpenDungeons/OpenDungeons / rrDestroyCreatureVisualDebug

Method rrDestroyCreatureVisualDebug

source/render/RenderManager.cpp:1072–1086  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1070}
1071
1072void RenderManager::rrDestroyCreatureVisualDebug(Creature* curCreature, Tile* curTile)
1073{
1074 std::stringstream tempSS;
1075 tempSS << "Vision_indicator_" << curCreature->getName() << "_"
1076 << curTile->getX() << "_" << curTile->getY();
1077 if (mSceneManager->hasEntity(tempSS.str()))
1078 {
1079 Ogre::Entity* visIndicatorEntity = mSceneManager->getEntity(tempSS.str());
1080 Ogre::SceneNode* visIndicatorNode = mSceneManager->getSceneNode(tempSS.str() + "_node");
1081
1082 visIndicatorNode->detachAllObjects();
1083 mSceneManager->destroyEntity(visIndicatorEntity);
1084 mSceneManager->destroySceneNode(visIndicatorNode);
1085 }
1086}
1087
1088void RenderManager::rrCreateSeatVisionVisualDebug(int seatId, Tile* tile)
1089{

Callers 2

Calls 2

getXMethod · 0.45
getYMethod · 0.45

Tested by

no test coverage detected