MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / visible_now

Method visible_now

ogsr_engine/xrGame/visual_memory_manager.cpp:206–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

204}
205
206bool CVisualMemoryManager::visible_now(const CGameObject* game_object) const
207{
208 if (Actor()->Holder() && smart_cast<const CActor*>(game_object))
209 game_object = smart_cast<const CGameObject*>(Actor()->Holder());
210
211 VISIBLES::const_iterator I = std::find(objects().begin(), objects().end(), object_id(game_object));
212 return ((objects().end() != I) && (*I).visible(mask()));
213}
214
215void CVisualMemoryManager::enable(const CObject* object, bool enable)
216{

Callers 15

evaluateMethod · 0.80
on_enemy_changeMethod · 0.80
need_updateMethod · 0.80
initializeMethod · 0.80
executeMethod · 0.80
isObjectVisibleMethod · 0.80
evaluateMethod · 0.80
process_explosiveMethod · 0.80
UpdateMethod · 0.80
initializeMethod · 0.80
process_corpseMethod · 0.80
IsVisibleMethod · 0.80

Calls 7

ActorFunction · 0.85
object_idFunction · 0.85
HolderMethod · 0.80
findFunction · 0.50
beginMethod · 0.45
endMethod · 0.45
visibleMethod · 0.45

Tested by

no test coverage detected