2014-03-15 16:59:03 +00:00
|
|
|
// SONIC ROBO BLAST 2
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// Copyright (C) 1993-1996 by id Software, Inc.
|
|
|
|
// Copyright (C) 1998-2000 by DooM Legacy Team.
|
2021-05-07 15:45:56 +00:00
|
|
|
// Copyright (C) 1999-2021 by Sonic Team Junior.
|
2014-03-15 16:59:03 +00:00
|
|
|
//
|
|
|
|
// This program is free software distributed under the
|
|
|
|
// terms of the GNU General Public License, version 2.
|
|
|
|
// See the 'LICENSE' file for more details.
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
/// \file am_map.h
|
2016-05-18 00:42:11 +00:00
|
|
|
/// \brief Code for the 'automap', former Doom feature used for DEVMODE testing
|
2014-03-15 16:59:03 +00:00
|
|
|
|
|
|
|
#ifndef __AMMAP_H__
|
|
|
|
#define __AMMAP_H__
|
|
|
|
|
|
|
|
#include "d_event.h"
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
INT32 x, y;
|
|
|
|
} fpoint_t;
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
fpoint_t a, b;
|
|
|
|
} fline_t;
|
|
|
|
|
|
|
|
extern boolean am_recalc; // true if screen size changes
|
|
|
|
extern boolean automapactive; // In AutoMap mode?
|
|
|
|
|
|
|
|
// Called by main loop.
|
|
|
|
boolean AM_Responder(event_t *ev);
|
|
|
|
|
|
|
|
// Called by main loop.
|
|
|
|
void AM_Ticker(void);
|
|
|
|
|
|
|
|
// Called by main loop, instead of view drawer if automap is active.
|
|
|
|
void AM_Drawer(void);
|
|
|
|
|
2020-01-27 02:12:28 +00:00
|
|
|
// Enables the automap.
|
|
|
|
void AM_Start(void);
|
|
|
|
|
2014-03-15 16:59:03 +00:00
|
|
|
// Called to force the automap to quit if the level is completed while it is up.
|
|
|
|
void AM_Stop(void);
|
|
|
|
|
|
|
|
#endif
|