Update readme and changelog for v1.27.0
[openttd-joker.git] / src / console_func.h
blobe2d744e3662143bff1aea9de8b1f807f94570e71
1 /* $Id: console_func.h 21707 2011-01-03 20:54:20Z rubidium $ */
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 console_func.h Console functions used outside of the console code. */
12 #ifndef CONSOLE_FUNC_H
13 #define CONSOLE_FUNC_H
15 #include "console_type.h"
17 /* console modes */
18 extern IConsoleModes _iconsole_mode;
20 /* console functions */
21 void IConsoleInit();
22 void IConsoleFree();
23 void IConsoleClose();
25 /* console output */
26 void IConsolePrint(TextColour colour_code, const char *string);
27 void CDECL IConsolePrintF(TextColour colour_code, const char *format, ...) WARN_FORMAT(2, 3);
28 void IConsoleDebug(const char *dbg, const char *string);
29 void IConsoleWarning(const char *string);
30 void IConsoleError(const char *string);
32 /* Parser */
33 void IConsoleCmdExec(const char *cmdstr);
35 bool IsValidConsoleColour(TextColour c);
37 #endif /* CONSOLE_FUNC_H */