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

Method rrSetCreaturesTextOverlay

source/render/RenderManager.cpp:1390–1395  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1388}
1389
1390void RenderManager::rrSetCreaturesTextOverlay(GameMap& gameMap, bool value)
1391{
1392 mCreatureTextOverlayDisplayed = value;
1393 for(Creature* creature : gameMap.getCreatures())
1394 creature->getOverlayStatus()->displayHealthOverlay(mCreatureTextOverlayDisplayed ? -1.0 : 0.0);
1395}
1396
1397void RenderManager::rrTemporaryDisplayCreaturesTextOverlay(Creature* creature, Ogre::Real timeToDisplay)
1398{

Callers 2

keyPressedNormalMethod · 0.80
keyReleasedNormalMethod · 0.80

Calls 2

displayHealthOverlayMethod · 0.80
getOverlayStatusMethod · 0.80

Tested by

no test coverage detected