// Emacs style mode select -*- C++ -*- //----------------------------------------------------------------------------- // // $Id:$ // // Copyright (C) 1998-2006 by Randy Heit (ZDoom). // Copyright (C) 2006-2007 by The Odamex Team. // // This program 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; either version 2 // of the License, or (at your option) any later version. // // This program 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. // // DESCRIPTION: // C_CONSOLE // //----------------------------------------------------------------------------- #ifndef __C_CONSOLE__ #define __C_CONSOLE__ #include #include #include "doomtype.h" #include "doomdef.h" #include "d_event.h" #include "cmdlib.h" #define C_BLINKRATE (TICRATE/2) typedef enum cstate_t { c_up=0, c_half, c_down, c_falling, c_rising } constate_e; extern constate_e ConsoleState; // Initialize the console void C_InitConsole (int width, int height, BOOL ingame); // SoM void C_ServerDisconnectEffect(void); // Adjust the console for a new screen mode void C_NewModeAdjust (void); void C_Ticker (void); int PrintString (int printlevel, const char *string); int VPrintf (int printlevel, const char *format, va_list parms); int STACK_ARGS Printf_Bold (const char *format, ...); void C_AddNotifyString (int printlevel, const char *s); void C_DrawConsole (void); void C_ToggleConsole (void); void C_FullConsole (void); void C_HideConsole (void); void C_AdjustBottom (void); void C_FlushDisplay (void); void C_InitTicker (const char *label, unsigned int max); void C_SetTicker (unsigned int at); void C_MidPrint (const char *message); void C_DrawMid (void); BOOL C_Responder (event_t *ev); void C_AddTabCommand (const char *name); void C_RemoveTabCommand (const char *name); void C_RevealSecret (); #endif