| 275 | } |
| 276 | |
| 277 | bool CScriptGameObject::vision_enabled() const |
| 278 | { |
| 279 | CCustomMonster* monster = smart_cast<CCustomMonster*>(&object()); |
| 280 | if (!monster) |
| 281 | { |
| 282 | ai().script_engine().script_log(ScriptStorage::eLuaMessageTypeError, "CVisualMemoryManager : cannot access class member vision_enabled!"); |
| 283 | return (false); |
| 284 | } |
| 285 | return (monster->memory().visual().enabled()); |
| 286 | } |
| 287 | |
| 288 | void CScriptGameObject::set_sound_threshold(float value) |
| 289 | { |
nothing calls this directly
no test coverage detected