# ai_gui.hpp

Go to the documentation of this file.

    00001 /* $Id$ */
    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 void ShowAIDebugWindowIfAIError();
    00021 void InitializeAIGui();
    00022 #else
    00023 #include "../gui.h"
    00024 #include "table/strings.h"
    00025
    00026 static inline void ShowAIConfigWindow()
    00027 {
    00028   ShowErrorMessage(STR_ERROR_NO_AI, STR_ERROR_NO_AI_SUB, WL_INFO);
    00029 }
    00030 static inline void ShowAIDebugWindow(CompanyID show_company = INVALID_COMPANY) {ShowAIConfigWindow();}
    00031 static inline void ShowAIDebugWindowIfAIError() {}
    00032 static inline void InitializeAIGui() {}
    00033 #endif /* ENABLE_AI */
    00034
    00035 #endif /* AI_GUI_HPP */