| 168 | int CScriptGameObject::active_sound_count() { return (active_sound_count(false)); } |
| 169 | |
| 170 | bool CScriptGameObject::wounded() const |
| 171 | { |
| 172 | const CAI_Stalker* stalker = smart_cast<const CAI_Stalker*>(&object()); |
| 173 | if (!stalker) |
| 174 | { |
| 175 | ai().script_engine().script_log(ScriptStorage::eLuaMessageTypeError, "CAI_Stalker : cannot access class member wounded!"); |
| 176 | return (false); |
| 177 | } |
| 178 | |
| 179 | return (stalker->wounded()); |
| 180 | } |
| 181 | |
| 182 | void CScriptGameObject::wounded(bool value) |
| 183 | { |
no test coverage detected