| 204 | } |
| 205 | |
| 206 | bool 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 | |
| 215 | void CVisualMemoryManager::enable(const CObject* object, bool enable) |
| 216 | { |
no test coverage detected