Mercurial > hg > openttd
annotate src/console_func.h @ 16971:b0999e3c9d93 draft
(svn r21707) -Fix [FS#4371]: bit too strict assertion on validness of console colours
author | rubidium <rubidium@openttd.org> |
---|---|
date | Mon, 03 Jan 2011 20:54:20 +0000 |
parents | db80544f73f9 |
children |
rev | line source |
---|---|
9336
5287277c4972
(svn r13228) -Codechange: split console.h.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
1 /* $Id$ */ |
5287277c4972
(svn r13228) -Codechange: split console.h.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
2 |
12778
bc7926153e19
(svn r17248) -Fix: add GPL license notice where appropriate
rubidium <rubidium@openttd.org>
parents:
11875
diff
changeset
|
3 /* |
bc7926153e19
(svn r17248) -Fix: add GPL license notice where appropriate
rubidium <rubidium@openttd.org>
parents:
11875
diff
changeset
|
4 * This file is part of OpenTTD. |
bc7926153e19
(svn r17248) -Fix: add GPL license notice where appropriate
rubidium <rubidium@openttd.org>
parents:
11875
diff
changeset
|
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. |
bc7926153e19
(svn r17248) -Fix: add GPL license notice where appropriate
rubidium <rubidium@openttd.org>
parents:
11875
diff
changeset
|
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. |
bc7926153e19
(svn r17248) -Fix: add GPL license notice where appropriate
rubidium <rubidium@openttd.org>
parents:
11875
diff
changeset
|
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/>. |
bc7926153e19
(svn r17248) -Fix: add GPL license notice where appropriate
rubidium <rubidium@openttd.org>
parents:
11875
diff
changeset
|
8 */ |
bc7926153e19
(svn r17248) -Fix: add GPL license notice where appropriate
rubidium <rubidium@openttd.org>
parents:
11875
diff
changeset
|
9 |
9336
5287277c4972
(svn r13228) -Codechange: split console.h.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
10 /** @file console_func.h Console functions used outside of the console code. */ |
5287277c4972
(svn r13228) -Codechange: split console.h.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
11 |
5287277c4972
(svn r13228) -Codechange: split console.h.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
12 #ifndef CONSOLE_FUNC_H |
5287277c4972
(svn r13228) -Codechange: split console.h.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
13 #define CONSOLE_FUNC_H |
5287277c4972
(svn r13228) -Codechange: split console.h.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
14 |
5287277c4972
(svn r13228) -Codechange: split console.h.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
15 #include "console_type.h" |
5287277c4972
(svn r13228) -Codechange: split console.h.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
16 |
9337
ee85444554a1
(svn r13229) -Codechange: replace some global variables that are only initialised once and always with the same value with enums.
rubidium <rubidium@openttd.org>
parents:
9336
diff
changeset
|
17 /* console modes */ |
9336
5287277c4972
(svn r13228) -Codechange: split console.h.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
18 extern IConsoleModes _iconsole_mode; |
5287277c4972
(svn r13228) -Codechange: split console.h.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
19 |
5287277c4972
(svn r13228) -Codechange: split console.h.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
20 /* console functions */ |
5287277c4972
(svn r13228) -Codechange: split console.h.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
21 void IConsoleInit(); |
5287277c4972
(svn r13228) -Codechange: split console.h.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
22 void IConsoleFree(); |
5287277c4972
(svn r13228) -Codechange: split console.h.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
23 void IConsoleClose(); |
5287277c4972
(svn r13228) -Codechange: split console.h.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
24 |
5287277c4972
(svn r13228) -Codechange: split console.h.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
25 /* console output */ |
16965
db80544f73f9
(svn r21701) -Codechange: ConsoleColour = TextColour, so make it that way and remove some unneeded casts
rubidium <rubidium@openttd.org>
parents:
12778
diff
changeset
|
26 void IConsolePrint(TextColour colour_code, const char *string); |
db80544f73f9
(svn r21701) -Codechange: ConsoleColour = TextColour, so make it that way and remove some unneeded casts
rubidium <rubidium@openttd.org>
parents:
12778
diff
changeset
|
27 void CDECL IConsolePrintF(TextColour colour_code, const char *format, ...) WARN_FORMAT(2, 3); |
9336
5287277c4972
(svn r13228) -Codechange: split console.h.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
28 void IConsoleDebug(const char *dbg, const char *string); |
9426
c6a097a992cf
(svn r13341) -Codechange: make most of the network settings configurable via the patch command.
rubidium <rubidium@openttd.org>
parents:
9337
diff
changeset
|
29 void IConsoleWarning(const char *string); |
c6a097a992cf
(svn r13341) -Codechange: make most of the network settings configurable via the patch command.
rubidium <rubidium@openttd.org>
parents:
9337
diff
changeset
|
30 void IConsoleError(const char *string); |
9336
5287277c4972
(svn r13228) -Codechange: split console.h.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
31 |
5287277c4972
(svn r13228) -Codechange: split console.h.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
32 /* Parser */ |
5287277c4972
(svn r13228) -Codechange: split console.h.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
33 void IConsoleCmdExec(const char *cmdstr); |
5287277c4972
(svn r13228) -Codechange: split console.h.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
34 |
16971
b0999e3c9d93
(svn r21707) -Fix [FS#4371]: bit too strict assertion on validness of console colours
rubidium <rubidium@openttd.org>
parents:
16965
diff
changeset
|
35 bool IsValidConsoleColour(TextColour c); |
b0999e3c9d93
(svn r21707) -Fix [FS#4371]: bit too strict assertion on validness of console colours
rubidium <rubidium@openttd.org>
parents:
16965
diff
changeset
|
36 |
9336
5287277c4972
(svn r13228) -Codechange: split console.h.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
37 #endif /* CONSOLE_FUNC_H */ |