Odamex
Setting the Standard in Multiplayer Doom
common/c_console.h
Go to the documentation of this file.
00001 // Emacs style mode select   -*- C++ -*- 
00002 //-----------------------------------------------------------------------------
00003 //
00004 // $Id: c_console.h 1847 2010-09-04 05:16:08Z ladna $
00005 //
00006 // Copyright (C) 1998-2006 by Randy Heit (ZDoom 1.22).
00007 // Copyright (C) 2006-2010 by The Odamex Team.
00008 //
00009 // This program is free software; you can redistribute it and/or
00010 // modify it under the terms of the GNU General Public License
00011 // as published by the Free Software Foundation; either version 2
00012 // of the License, or (at your option) any later version.
00013 //
00014 // This program is distributed in the hope that it will be useful,
00015 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00016 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017 // GNU General Public License for more details.
00018 //
00019 // DESCRIPTION:
00020 //      C_CONSOLE
00021 //
00022 //-----------------------------------------------------------------------------
00023 
00024 
00025 #ifndef __C_CONSOLE__
00026 #define __C_CONSOLE__
00027 
00028 #include <stdio.h>
00029 #include <stdarg.h>
00030 
00031 #include "doomtype.h"
00032 #include "doomdef.h"
00033 #include "d_event.h"
00034 #include "cmdlib.h"
00035 #include "d_player.h"
00036 
00037 #define C_BLINKRATE                     (TICRATE/2)
00038 
00039 typedef enum cstate_t {
00040         c_up=0, c_down, c_falling, c_rising, c_fallfull, c_risefull
00041 } constate_e;
00042 
00043 extern constate_e       ConsoleState;
00044 
00045 // Initialize the console
00046 void C_InitConsole (int width, int height, BOOL ingame);
00047 
00048 // SoM
00049 void C_ServerDisconnectEffect(void);
00050 
00051 // Adjust the console for a new screen mode
00052 void C_NewModeAdjust (void);
00053 
00054 void C_Ticker (void);
00055 
00056 int PrintString (int printlevel, const char *string);
00057 int VPrintf (int printlevel, const char *format, va_list parms);
00058 int STACK_ARGS Printf_Bold (const char *format, ...);
00059 
00060 void C_AddNotifyString (int printlevel, const char *s);
00061 void C_DrawConsole (void);
00062 void C_ToggleConsole (void);
00063 void C_FullConsole (void);
00064 void C_HideConsole (void);
00065 void C_AdjustBottom (void);
00066 void C_FlushDisplay (void);
00067 
00068 void C_InitTicker (const char *label, unsigned int max);
00069 void C_SetTicker (unsigned int at);
00070 
00071 void C_MidPrint (const char *msg, player_t *p = NULL, int msgtime=0);
00072 void C_DrawMid (void);
00073 
00074 BOOL C_Responder (event_t *ev);
00075 
00076 void C_AddTabCommand (const char *name);
00077 void C_RemoveTabCommand (const char *name);
00078 
00079 void C_RevealSecret ();
00080 
00081 #endif
00082 
00083 
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends