Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  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.  
  24. #ifndef __STSTUFF_H__
  25. #define __STSTUFF_H__
  26.  
  27. #include "doomtype.h"
  28. #include "d_event.h"
  29.  
  30. // Size of statusbar.
  31. // Now sensitive for scaling.
  32. #define ST_HEIGHT       32*SCREEN_MUL
  33. #define ST_WIDTH        SCREENWIDTH
  34. #define ST_Y            (SCREENHEIGHT - ST_HEIGHT)
  35.  
  36.  
  37. //
  38. // STATUS BAR
  39. //
  40.  
  41. // Called by main loop.
  42. boolean ST_Responder (event_t* ev);
  43.  
  44. // Called by main loop.
  45. void ST_Ticker (void);
  46.  
  47. // Called by main loop.
  48. void ST_Drawer (boolean fullscreen, boolean refresh);
  49.  
  50. // Called when the console player is spawned on each level.
  51. void ST_Start (void);
  52.  
  53. // Called by startup code.
  54. void ST_Init (void);
  55.  
  56.  
  57.  
  58. // States for status bar code.
  59. typedef enum
  60. {
  61.     AutomapState,
  62.     FirstPersonState
  63.    
  64. } st_stateenum_t;
  65.  
  66.  
  67. // States for the chat code.
  68. typedef enum
  69. {
  70.     StartChatState,
  71.     WaitDestState,
  72.     GetChatState
  73.    
  74. } st_chatstateenum_t;
  75.  
  76.  
  77. boolean ST_Responder(event_t* ev);
  78.  
  79.  
  80.  
  81. #endif
  82. //-----------------------------------------------------------------------------
  83. //
  84. // $Log:$
  85. //
  86. //-----------------------------------------------------------------------------
  87.