home *** CD-ROM | disk | FTP | other *** search
/ ST-Computer Leser-CD 2000 January / LCD_01_2000.iso / games / doom / pmdoom / include / am_map.h next >
Encoding:
C/C++ Source or Header  |  1999-12-17  |  2.1 KB  |  84 lines

  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. /*   AutoMap module. */
  19. /*  */
  20. /* ----------------------------------------------------------------------------- */
  21.  
  22. #ifndef __AMMAP_H__
  23. #define __AMMAP_H__
  24.  
  25. #include "doomtype.h"
  26. #include "d_event.h"
  27. #include "m_fixed.h"
  28.  
  29. /*  Used by ST StatusBar stuff. */
  30. #define AM_MSGHEADER (('a'<<24)+('m'<<16))
  31. #define AM_MSGENTERED (AM_MSGHEADER | ('e'<<8))
  32. #define AM_MSGEXITED (AM_MSGHEADER | ('x'<<8))
  33.  
  34. typedef struct
  35. {
  36.     int x, y;
  37. } fpoint_t;
  38.  
  39. typedef struct
  40. {
  41.     fpoint_t a, b;
  42. } fline_t;
  43.  
  44. typedef struct
  45. {
  46.     fixed_t        x,y;
  47. } mpoint_t;
  48.  
  49. typedef struct
  50. {
  51.     mpoint_t a, b;
  52. } mline_t;
  53.  
  54. typedef struct
  55. {
  56.     fixed_t slp, islp;
  57. } islope_t;
  58.  
  59. /*  Called by main loop. */
  60. boolean AM_Responder (event_t* ev);
  61.  
  62. /*  Called by main loop. */
  63. void AM_Ticker (void);
  64.  
  65. /*  Called by main loop, */
  66. /*  called instead of view drawer if automap active. */
  67. void AM_Drawer (void);
  68.  
  69. /*  Called to force the automap to quit */
  70. /*  if the level is completed while it is up. */
  71. void AM_Stop (void);
  72.  
  73. void AM_drawFline8( fline_t* fl, int color );
  74. void AM_drawFline16( fline_t* fl, int color );
  75. void AM_drawFline24( fline_t* fl, int color );
  76. void AM_drawFline32( fline_t* fl, int color );
  77.  
  78. #endif
  79. /* ----------------------------------------------------------------------------- */
  80. /*  */
  81. /*  $Log:$ */
  82. /*  */
  83. /* ----------------------------------------------------------------------------- */
  84.