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