# console_func.h

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 CONSOLE_FUNC_H
    00013 #define CONSOLE_FUNC_H
    00014
    00015 #include "console_type.h"
    00016
    00017 /* console modes */
    00018 extern IConsoleModes _iconsole_mode;
    00019
    00020 /* console functions */
    00021 void IConsoleInit();
    00022 void IConsoleFree();
    00023 void IConsoleClose();
    00024
    00025 /* console output */
    00026 void IConsolePrint(ConsoleColour colour_code, const char *string);
    00027 void CDECL IConsolePrintF(ConsoleColour colour_code, const char *format, ...) WARN_FORMAT(2, 3);
    00028 void IConsoleDebug(const char *dbg, const char *string);
    00029 void IConsoleWarning(const char *string);
    00030 void IConsoleError(const char *string);
    00031
    00032 /* Parser */
    00033 void IConsoleCmdExec(const char *cmdstr);
    00034
    00035 #endif /* CONSOLE_FUNC_H */