2020-09-06 10:44:58 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "tarray.h"
|
|
|
|
#include "build.h"
|
2020-09-06 18:49:43 +00:00
|
|
|
#include "c_cvars.h"
|
2020-09-06 19:31:05 +00:00
|
|
|
#include "palentry.h"
|
2020-09-06 10:44:58 +00:00
|
|
|
|
2020-09-06 11:39:57 +00:00
|
|
|
class FSerializer;
|
2020-09-06 18:49:43 +00:00
|
|
|
struct event_t;
|
2020-09-06 11:39:57 +00:00
|
|
|
|
2020-09-06 10:44:58 +00:00
|
|
|
extern bool automapping;
|
|
|
|
extern bool gFullMap;
|
2021-11-20 23:03:56 +00:00
|
|
|
extern BitArray show2dsector;
|
|
|
|
extern BitArray show2dwall;
|
2020-09-06 10:44:58 +00:00
|
|
|
|
2020-09-06 11:39:57 +00:00
|
|
|
void SerializeAutomap(FSerializer& arc);
|
2020-09-06 10:44:58 +00:00
|
|
|
void ClearAutomap();
|
2021-12-02 00:05:07 +00:00
|
|
|
void MarkSectorSeen(sectortype* sect);
|
2022-09-20 00:31:01 +00:00
|
|
|
void DrawOverheadMap(const DVector2& plxy, const DAngle pl_angle, double const smoothratio);
|
2020-09-06 18:49:43 +00:00
|
|
|
bool AM_Responder(event_t* ev, bool last);
|
2022-09-02 08:39:01 +00:00
|
|
|
void drawlinergb(const DVector2& v1, const DVector2& v2, PalEntry p);
|
2022-08-29 14:08:15 +00:00
|
|
|
|
2022-09-20 00:07:15 +00:00
|
|
|
inline DVector2 OutAutomapVector(const DVector2& pos, const DVector2& angvect, const double zoom = 1., const DVector2& xydim = { 0, 0 })
|
2022-08-31 13:10:40 +00:00
|
|
|
{
|
2022-09-20 00:07:15 +00:00
|
|
|
return -pos.Rotated(angvect.Y, angvect.X) * zoom + xydim;
|
2022-08-31 13:10:40 +00:00
|
|
|
}
|
|
|
|
|
2020-09-06 18:49:43 +00:00
|
|
|
enum AM_Mode
|
|
|
|
{
|
|
|
|
am_off,
|
|
|
|
am_overlay,
|
|
|
|
am_full,
|
|
|
|
am_count
|
|
|
|
};
|
|
|
|
extern int automapMode;
|
|
|
|
|
|
|
|
EXTERN_CVAR(Bool, am_followplayer)
|