diff options
Diffstat (limited to 'src/ai/ai_instance.hpp')
-rw-r--r-- | src/ai/ai_instance.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ai/ai_instance.hpp b/src/ai/ai_instance.hpp index 3ae3aa152..2730e9bd9 100644 --- a/src/ai/ai_instance.hpp +++ b/src/ai/ai_instance.hpp @@ -81,6 +81,11 @@ public: class AIController *GetController() { return controller; } /** + * Return the "this AI died" value + */ + inline bool IsDead() { return this->is_dead; } + + /** * Call the AI Save function and save all data in the savegame. */ void Save(); |