st_stuff.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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. // Status bar code.
  19. // Does the face/direction indicator animatin.
  20. // Does palette indicators as well (red pain/berserk, bright pickup)
  21. //
  22. //-----------------------------------------------------------------------------
  23. #ifndef __STSTUFF_H__
  24. #define __STSTUFF_H__
  25. #include "doomtype.h"
  26. #include "d_event.h"
  27. // Size of statusbar.
  28. // Now sensitive for scaling.
  29. #define ST_HEIGHT 32*SCREEN_MUL
  30. #define ST_WIDTH SCREENWIDTH
  31. #define ST_Y (SCREENHEIGHT - ST_HEIGHT)
  32. //
  33. // STATUS BAR
  34. //
  35. // Called by main loop.
  36. boolean ST_Responder (event_t* ev);
  37. // Called by main loop.
  38. void ST_Ticker (void);
  39. // Called by main loop.
  40. void ST_Drawer (boolean fullscreen, boolean refresh);
  41. // Called when the console player is spawned on each level.
  42. void ST_Start (void);
  43. // Called by startup code.
  44. void ST_Init (void);
  45. // States for status bar code.
  46. typedef enum
  47. {
  48. AutomapState,
  49. FirstPersonState
  50. } st_stateenum_t;
  51. // States for the chat code.
  52. typedef enum
  53. {
  54. StartChatState,
  55. WaitDestState,
  56. GetChatState
  57. } st_chatstateenum_t;
  58. boolean ST_Responder(event_t* ev);
  59. #endif
  60. //-----------------------------------------------------------------------------
  61. //
  62. // $Log:$
  63. //
  64. //-----------------------------------------------------------------------------