qwsvdef.h 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. /*
  2. Copyright (C) 1996-1997 Id Software, Inc.
  3. This program is free software; you can redistribute it and/or
  4. modify it under the terms of the GNU General Public License
  5. as published by the Free Software Foundation; either version 2
  6. of the License, or (at your option) any later version.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  10. See the GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with this program; if not, write to the Free Software
  13. Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  14. */
  15. // quakedef.h -- primary header for server
  16. #define QUAKE_GAME // as opposed to utilities
  17. //define PARANOID // speed sapping error checking
  18. #ifdef _WIN32
  19. #pragma warning( disable : 4244 4127 4201 4214 4514 4305 4115 4018)
  20. #endif
  21. #include <math.h>
  22. #include <string.h>
  23. #include <stdarg.h>
  24. #include <stdio.h>
  25. #include <stdlib.h>
  26. #include <setjmp.h>
  27. #include <ctype.h>
  28. #include "bothdefs.h"
  29. #include "common.h"
  30. #include "bspfile.h"
  31. #include "sys.h"
  32. #include "zone.h"
  33. #include "mathlib.h"
  34. #include "cvar.h"
  35. #include "net.h"
  36. #include "protocol.h"
  37. #include "cmd.h"
  38. #include "model.h"
  39. #include "crc.h"
  40. #include "progs.h"
  41. #include "server.h"
  42. #include "world.h"
  43. #include "pmove.h"
  44. //=============================================================================
  45. // the host system specifies the base of the directory tree, the
  46. // command line parms passed to the program, and the amount of memory
  47. // available for the program to use
  48. typedef struct
  49. {
  50. char *basedir;
  51. char *cachedir; // for development over ISDN lines
  52. int argc;
  53. char **argv;
  54. void *membase;
  55. int memsize;
  56. } quakeparms_t;
  57. //=============================================================================
  58. //
  59. // host
  60. //
  61. extern quakeparms_t host_parms;
  62. extern cvar_t sys_nostdout;
  63. extern cvar_t developer;
  64. extern qboolean host_initialized; // true if into command execution
  65. extern double host_frametime;
  66. extern double realtime; // not bounded in any way, changed at
  67. // start of every frame, never reset
  68. void SV_Error (char *error, ...);
  69. void SV_Init (quakeparms_t *parms);
  70. void Con_Printf (char *fmt, ...);
  71. void Con_DPrintf (char *fmt, ...);