g_game.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. // Emacs style mode select -*- C++ -*-
  2. //-----------------------------------------------------------------------------
  3. //
  4. // $Id:$
  5. //
  6. // Copyright (C) 1993-1996 by id Software, Inc.
  7. //
  8. // This source is available for distribution and/or modification
  9. // only under the terms of the DOOM Source Code License as
  10. // published by id Software. All rights reserved.
  11. //
  12. // The source is distributed in the hope that it will be useful,
  13. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. // FITNESS FOR A PARTICULAR PURPOSE. See the DOOM Source Code License
  15. // for more details.
  16. //
  17. // DESCRIPTION:
  18. // Duh.
  19. //
  20. //-----------------------------------------------------------------------------
  21. #ifndef __G_GAME__
  22. #define __G_GAME__
  23. #include "doomdef.h"
  24. #include "d_event.h"
  25. //
  26. // GAME
  27. //
  28. void G_DeathMatchSpawnPlayer (int playernum);
  29. void G_InitNew (skill_t skill, int episode, int map);
  30. // Can be called by the startup code or M_Responder.
  31. // A normal game starts at map 1,
  32. // but a warp test can start elsewhere
  33. void G_DeferedInitNew (skill_t skill, int episode, int map);
  34. void G_DeferedPlayDemo (char* demo);
  35. // Can be called by the startup code or M_Responder,
  36. // calls P_SetupLevel or W_EnterWorld.
  37. void G_LoadGame (char* name);
  38. void G_DoLoadGame (void);
  39. // Called by M_Responder.
  40. void G_SaveGame (int slot, char* description);
  41. // Only called by startup code.
  42. void G_RecordDemo (char* name);
  43. void G_BeginRecording (void);
  44. void G_PlayDemo (char* name);
  45. void G_TimeDemo (char* name);
  46. boolean G_CheckDemoStatus (void);
  47. void G_ExitLevel (void);
  48. void G_SecretExitLevel (void);
  49. void G_WorldDone (void);
  50. void G_Ticker (void);
  51. boolean G_Responder (event_t* ev);
  52. void G_ScreenShot (void);
  53. #endif
  54. //-----------------------------------------------------------------------------
  55. //
  56. // $Log:$
  57. //
  58. //-----------------------------------------------------------------------------