00001 /* $Id: ai_execmode.hpp 20288 2010-08-01 20:41:46Z yexo $ */ 00002 00003 /* 00004 * This file is part of OpenTTD. 00005 * 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. 00006 * 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. 00007 * 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/>. 00008 */ 00009 00012 #ifndef AI_EXECMODE_HPP 00013 #define AI_EXECMODE_HPP 00014 00015 #include "ai_object.hpp" 00016 00024 class AIExecMode : public AIObject { 00025 public: 00027 static const char *GetClassName() { return "AIExecMode"; } 00028 00029 private: 00030 AIModeProc *last_mode; 00031 AIObject *last_instance; 00032 00033 protected: 00037 static bool ModeProc(); 00038 00039 public: 00045 AIExecMode(); 00046 00051 ~AIExecMode(); 00052 }; 00053 00054 #endif /* AI_EXECMODE_HPP */