~lewiscawte/+junk/openttd-stable

« back to all changes in this revision

Viewing changes to src/console_func.h

  • Committer: Lewis Cawte
  • Date: 2011-06-11 09:45:09 UTC
  • Revision ID: lewis@dev.lewiscawte.info-20110611094509-c5dqw2ot6pb9t10i
Adding stable

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* $Id: console_func.h 21707 2011-01-03 20:54:20Z rubidium $ */
 
2
 
 
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
 */
 
9
 
 
10
/** @file console_func.h Console functions used outside of the console code. */
 
11
 
 
12
#ifndef CONSOLE_FUNC_H
 
13
#define CONSOLE_FUNC_H
 
14
 
 
15
#include "console_type.h"
 
16
 
 
17
/* console modes */
 
18
extern IConsoleModes _iconsole_mode;
 
19
 
 
20
/* console functions */
 
21
void IConsoleInit();
 
22
void IConsoleFree();
 
23
void IConsoleClose();
 
24
 
 
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);
 
31
 
 
32
/* Parser */
 
33
void IConsoleCmdExec(const char *cmdstr);
 
34
 
 
35
bool IsValidConsoleColour(TextColour c);
 
36
 
 
37
#endif /* CONSOLE_FUNC_H */