(svn r27953) -Cleanup: Adjust other languages for r27952
[openttd.git] / src / ai / ai_instance.hpp
blob204bf9712ad9e41ba75fc3e50f96963a5f0b3778
1 /* $Id$ */
3 /*
4 * This file is part of OpenTTD.
5 * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
6 * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
7 * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
8 */
10 /** @file ai_instance.hpp The AIInstance tracks an AI. */
12 #ifndef AI_INSTANCE_HPP
13 #define AI_INSTANCE_HPP
15 #include "../script/script_instance.hpp"
17 /** Runtime information about an AI like a pointer to the squirrel vm and the current state. */
18 class AIInstance : public ScriptInstance {
19 public:
20 AIInstance();
22 /**
23 * Initialize the AI and prepare it for its first run.
24 * @param info The AI to create the instance of.
26 void Initialize(class AIInfo *info);
28 /* virtual */ int GetSetting(const char *name);
29 /* virtual */ ScriptInfo *FindLibrary(const char *library, int version);
31 private:
32 /* virtual */ void RegisterAPI();
33 /* virtual */ void Died();
34 /* virtual */ CommandCallback *GetDoCommandCallback();
35 /* virtual */ void LoadDummyScript();
38 #endif /* AI_INSTANCE_HPP */