diff options
author | aap <aap@papnet.eu> | 2020-04-06 18:37:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-06 18:37:17 +0200 |
commit | f2b3be5da2d2bac9d9952291c82ac106c80709c4 (patch) | |
tree | 72da668c23cf1fc87adcf9101ff3d2d838bb0211 /src/core/Radar.h | |
parent | Merge pull request #381 from aap/master (diff) | |
parent | Frontend (last-3) (diff) | |
download | re3-f2b3be5da2d2bac9d9952291c82ac106c80709c4.tar re3-f2b3be5da2d2bac9d9952291c82ac106c80709c4.tar.gz re3-f2b3be5da2d2bac9d9952291c82ac106c80709c4.tar.bz2 re3-f2b3be5da2d2bac9d9952291c82ac106c80709c4.tar.lz re3-f2b3be5da2d2bac9d9952291c82ac106c80709c4.tar.xz re3-f2b3be5da2d2bac9d9952291c82ac106c80709c4.tar.zst re3-f2b3be5da2d2bac9d9952291c82ac106c80709c4.zip |
Diffstat (limited to 'src/core/Radar.h')
-rw-r--r-- | src/core/Radar.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/core/Radar.h b/src/core/Radar.h index b0400b0d..fb10967b 100644 --- a/src/core/Radar.h +++ b/src/core/Radar.h @@ -21,6 +21,10 @@ enum eBlipDisplay enum eRadarSprite { +#ifdef MENU_MAP + RADAR_SPRITE_ENTITY_BLIP = -2, + RADAR_SPRITE_COORD_BLIP = -1, +#endif RADAR_SPRITE_NONE = 0, RADAR_SPRITE_ASUKA = 1, RADAR_SPRITE_BOMB = 2, @@ -101,8 +105,16 @@ public: static CSprite2d TonySprite; static CSprite2d WeaponSprite; static CSprite2d *RadarSprites[21]; + static float cachedCos; + static float cachedSin; +#ifdef MENU_MAP + static CRGBA ArrowBlipColour1; + static CRGBA ArrowBlipColour2; + static uint16 MapLegendList[75]; + static bool bMenuMapActive; -public: + static void InitFrontEndMap(); +#endif static uint8 CalculateBlipAlpha(float dist); static void ChangeBlipBrightness(int32 i, int32 bright); static void ChangeBlipColour(int32 i, int32); @@ -150,4 +162,5 @@ public: static void ClipRadarTileCoords(int32 &x, int32 &y); static bool IsPointInsideRadar(const CVector2D &); static int LineRadarBoxCollision(CVector2D &, const CVector2D &, const CVector2D &); + static void CalculateCachedSinCos(); }; |