ai_gui.hpp

Go to the documentation of this file.
00001 /* $Id: ai_gui.hpp 19081 2010-02-10 16:24:05Z rubidium $ */
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_GUI_HPP
00013 #define AI_GUI_HPP
00014 
00015 #include "../company_type.h"
00016 
00017 #ifdef ENABLE_AI
00018 void ShowAIDebugWindow(CompanyID show_company = INVALID_COMPANY);
00019 void ShowAIConfigWindow();
00020 #else
00021 #include "table/strings.h"
00022 
00023 static inline void ShowAIConfigWindow()
00024 {
00025   ShowErrorMessage(STR_ERROR_NO_AI, STR_ERROR_NO_AI_SUB, 0, 0);
00026 }
00027 static inline void ShowAIDebugWindow(CompanyID show_company = INVALID_COMPANY) {ShowAIConfigWindow();}
00028 #endif /* ENABLE_AI */
00029 
00030 #endif /* AI_GUI_HPP */

Generated on Wed Mar 3 23:32:18 2010 for OpenTTD by  doxygen 1.6.1