2008-05-24 10:15:06 +00:00
|
|
|
/* $Id$ */
|
|
|
|
|
2009-08-21 20:21:05 +00:00
|
|
|
/*
|
|
|
|
* This file is part of OpenTTD.
|
|
|
|
* 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.
|
|
|
|
* 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.
|
|
|
|
* 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/>.
|
|
|
|
*/
|
|
|
|
|
2008-05-24 10:15:06 +00:00
|
|
|
/** @file console_func.h Console functions used outside of the console code. */
|
|
|
|
|
|
|
|
#ifndef CONSOLE_FUNC_H
|
|
|
|
#define CONSOLE_FUNC_H
|
|
|
|
|
|
|
|
#include "console_type.h"
|
|
|
|
|
2008-05-24 10:35:15 +00:00
|
|
|
/* console modes */
|
2008-05-24 10:15:06 +00:00
|
|
|
extern IConsoleModes _iconsole_mode;
|
|
|
|
|
|
|
|
/* console functions */
|
|
|
|
void IConsoleInit();
|
|
|
|
void IConsoleFree();
|
|
|
|
void IConsoleClose();
|
|
|
|
|
|
|
|
/* console output */
|
2011-01-03 12:01:41 +00:00
|
|
|
void IConsolePrint(TextColour colour_code, const char *string);
|
|
|
|
void CDECL IConsolePrintF(TextColour colour_code, const char *format, ...) WARN_FORMAT(2, 3);
|
2008-05-24 10:15:06 +00:00
|
|
|
void IConsoleDebug(const char *dbg, const char *string);
|
2008-05-30 09:23:05 +00:00
|
|
|
void IConsoleWarning(const char *string);
|
|
|
|
void IConsoleError(const char *string);
|
2008-05-24 10:15:06 +00:00
|
|
|
|
|
|
|
/* Parser */
|
|
|
|
void IConsoleCmdExec(const char *cmdstr);
|
|
|
|
|
2011-01-03 20:54:20 +00:00
|
|
|
bool IsValidConsoleColour(TextColour c);
|
|
|
|
|
2008-05-24 10:15:06 +00:00
|
|
|
#endif /* CONSOLE_FUNC_H */
|