diff options
author | eray orçunus <erayorcunus@gmail.com> | 2020-04-04 13:39:58 +0200 |
---|---|---|
committer | eray orçunus <erayorcunus@gmail.com> | 2020-04-04 13:49:19 +0200 |
commit | bd7a59e58ea92ad135bf737e07a5c422b4364eb2 (patch) | |
tree | 67b4872ab47ee0a704021ead9468050e2700eac5 /src/core/Radar.h | |
parent | Merge pull request #377 from Fire-Head/master (diff) | |
download | re3-bd7a59e58ea92ad135bf737e07a5c422b4364eb2.tar re3-bd7a59e58ea92ad135bf737e07a5c422b4364eb2.tar.gz re3-bd7a59e58ea92ad135bf737e07a5c422b4364eb2.tar.bz2 re3-bd7a59e58ea92ad135bf737e07a5c422b4364eb2.tar.lz re3-bd7a59e58ea92ad135bf737e07a5c422b4364eb2.tar.xz re3-bd7a59e58ea92ad135bf737e07a5c422b4364eb2.tar.zst re3-bd7a59e58ea92ad135bf737e07a5c422b4364eb2.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(); }; |