OpenTTD Source: src/ai/ai_gui.hpp Source File

OpenTTD Source 12.2

ai_gui.hpp
Go to the documentation of this file.
1 /*
2 * This file is part of OpenTTD.
3 * 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.
4 * 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.
5 * 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/>.
6 */
7
10 #ifndef AI_GUI_HPP
11 #define AI_GUI_HPP
12
13 #include "../company_type.h"
14
15 Window* ShowAIDebugWindow(CompanyID show_company = INVALID_COMPANY);
16 void ShowAIConfigWindow();
17 void ShowAIDebugWindowIfAIError();
18 void InitializeAIGui();
19
20 #endif /* AI_GUI_HPP */
ShowAIDebugWindowIfAIError
void ShowAIDebugWindowIfAIError()
Open the AI debug window if one of the AI scripts has crashed.
Definition: ai_gui.cpp:1560
Owner
Owner
Enum for all companies/owners.
Definition: company_type.h:18
InitializeAIGui
void InitializeAIGui()
Reset the AI windows to their initial state.
Definition: ai_gui.cpp:1554
ShowAIDebugWindow
Window * ShowAIDebugWindow(CompanyID show_company=INVALID_COMPANY)
Open the AI debug window and select the given company.
Definition: ai_gui.cpp:1537
INVALID_COMPANY
@ INVALID_COMPANY
An invalid company.
Definition: company_type.h:30
Window
Data structure for an opened window.
Definition: window_gui.h:279
ShowAIConfigWindow
void ShowAIConfigWindow()
Open the AI config window.
Definition: ai_gui.cpp:973