| 1086 | } |
| 1087 | |
| 1088 | void RenderManager::rrCreateSeatVisionVisualDebug(int seatId, Tile* tile) |
| 1089 | { |
| 1090 | if (tile != nullptr) |
| 1091 | { |
| 1092 | std::stringstream tempSS; |
| 1093 | tempSS << "Seat_Vision_indicator" << seatId << "_" |
| 1094 | << tile->getX() << "_" << tile->getY(); |
| 1095 | |
| 1096 | Ogre::Entity* visIndicatorEntity = mSceneManager->createEntity(tempSS.str(), |
| 1097 | "Cre_vision_indicator.mesh"); |
| 1098 | Ogre::SceneNode* visIndicatorNode = mCreatureSceneNode->createChildSceneNode(tempSS.str() |
| 1099 | + "_node"); |
| 1100 | visIndicatorNode->attachObject(visIndicatorEntity); |
| 1101 | visIndicatorNode->setPosition(Ogre::Vector3(static_cast<Ogre::Real>(tile->getX()), |
| 1102 | static_cast<Ogre::Real>(tile->getY()), |
| 1103 | static_cast<Ogre::Real>(0))); |
| 1104 | } |
| 1105 | } |
| 1106 | |
| 1107 | void RenderManager::rrDestroySeatVisionVisualDebug(int seatId, Tile* tile) |
| 1108 | { |
no test coverage detected