home *** CD-ROM | disk | FTP | other *** search
- /* Emacs style mode select -*- C++ -*- */
- /* ----------------------------------------------------------------------------- */
- /* */
- /* $Id:$ */
- /* */
- /* Copyright (C) 1993-1996 by id Software, Inc. */
- /* */
- /* This source is available for distribution and/or modification */
- /* only under the terms of the DOOM Source Code License as */
- /* published by id Software. All rights reserved. */
- /* */
- /* The source is distributed in the hope that it will be useful, */
- /* but WITHOUT ANY WARRANTY; without even the implied warranty of */
- /* FITNESS FOR A PARTICULAR PURPOSE. See the DOOM Source Code License */
- /* for more details. */
- /* */
- /* DESCRIPTION: */
- /* AutoMap module. */
- /* */
- /* ----------------------------------------------------------------------------- */
-
- #ifndef __AMMAP_H__
- #define __AMMAP_H__
-
- #include "doomtype.h"
- #include "d_event.h"
- #include "m_fixed.h"
-
- /* Used by ST StatusBar stuff. */
- #define AM_MSGHEADER (('a'<<24)+('m'<<16))
- #define AM_MSGENTERED (AM_MSGHEADER | ('e'<<8))
- #define AM_MSGEXITED (AM_MSGHEADER | ('x'<<8))
-
- typedef struct
- {
- int x, y;
- } fpoint_t;
-
- typedef struct
- {
- fpoint_t a, b;
- } fline_t;
-
- typedef struct
- {
- fixed_t x,y;
- } mpoint_t;
-
- typedef struct
- {
- mpoint_t a, b;
- } mline_t;
-
- typedef struct
- {
- fixed_t slp, islp;
- } islope_t;
-
- /* Called by main loop. */
- boolean AM_Responder (event_t* ev);
-
- /* Called by main loop. */
- void AM_Ticker (void);
-
- /* Called by main loop, */
- /* called instead of view drawer if automap active. */
- void AM_Drawer (void);
-
- /* Called to force the automap to quit */
- /* if the level is completed while it is up. */
- void AM_Stop (void);
-
- void AM_drawFline8( fline_t* fl, int color );
- void AM_drawFline16( fline_t* fl, int color );
- void AM_drawFline24( fline_t* fl, int color );
- void AM_drawFline32( fline_t* fl, int color );
-
- #endif
- /* ----------------------------------------------------------------------------- */
- /* */
- /* $Log:$ */
- /* */
- /* ----------------------------------------------------------------------------- */
-