| 264 | } |
| 265 | |
| 266 | void CScriptGameObject::enable_vision(bool value) |
| 267 | { |
| 268 | CCustomMonster* monster = smart_cast<CCustomMonster*>(&object()); |
| 269 | if (!monster) |
| 270 | { |
| 271 | ai().script_engine().script_log(ScriptStorage::eLuaMessageTypeError, "CVisualMemoryManager : cannot access class member enable_vision!"); |
| 272 | return; |
| 273 | } |
| 274 | monster->memory().visual().enable(value); |
| 275 | } |
| 276 | |
| 277 | bool CScriptGameObject::vision_enabled() const |
| 278 | { |
nothing calls this directly
no test coverage detected