(svn r18747) -Codechange: add some constness to the AI code

This commit is contained in:
rubidium
2010-01-07 00:09:27 +00:00
parent 0a54cc9335
commit d9f86b6f97
6 changed files with 24 additions and 24 deletions

View File

@@ -70,7 +70,7 @@ public:
/**
* Let the VM collect any garbage.
*/
void CollectGarbage();
void CollectGarbage() const;
/**
* Get the storage of this AI.
@@ -105,7 +105,7 @@ public:
/**
* Return the "this AI died" value
*/
inline bool IsDead() { return this->is_dead; }
inline bool IsDead() const { return this->is_dead; }
/**
* Call the AI Save function and save all data in the savegame.