diff options
author | eray orçunus <erayorcunus@gmail.com> | 2020-04-04 14:39:58 +0300 |
---|---|---|
committer | eray orçunus <erayorcunus@gmail.com> | 2020-04-04 14:49:19 +0300 |
commit | bd7a59e58ea92ad135bf737e07a5c422b4364eb2 (patch) | |
tree | 67b4872ab47ee0a704021ead9468050e2700eac5 /src/core/Radar.h | |
parent | f56909d8b7df667aaf9c3dfa9bb2b4745b9f2293 (diff) |
Frontend (last-3)
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(); }; |