summaryrefslogtreecommitdiffstats
path: root/src/core/Radar.h
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-04-09 20:40:46 +0200
committerSergeanur <s.anureev@yandex.ua>2020-04-09 20:40:46 +0200
commita5239b554fa13aaf0ffa5ee850402f71cd680d29 (patch)
tree47ac7800bd86e5674fee2b6fc3a797647570e6cb /src/core/Radar.h
parentMerge pull request #393 from Sergeanur/txdimg (diff)
parentPS2 Cheats, restored R*names (diff)
downloadre3-a5239b554fa13aaf0ffa5ee850402f71cd680d29.tar
re3-a5239b554fa13aaf0ffa5ee850402f71cd680d29.tar.gz
re3-a5239b554fa13aaf0ffa5ee850402f71cd680d29.tar.bz2
re3-a5239b554fa13aaf0ffa5ee850402f71cd680d29.tar.lz
re3-a5239b554fa13aaf0ffa5ee850402f71cd680d29.tar.xz
re3-a5239b554fa13aaf0ffa5ee850402f71cd680d29.tar.zst
re3-a5239b554fa13aaf0ffa5ee850402f71cd680d29.zip
Diffstat (limited to 'src/core/Radar.h')
-rw-r--r--src/core/Radar.h13
1 files changed, 4 insertions, 9 deletions
diff --git a/src/core/Radar.h b/src/core/Radar.h
index 6d5bb196..27f3a6f0 100644
--- a/src/core/Radar.h
+++ b/src/core/Radar.h
@@ -56,7 +56,7 @@ enum
BLIP_MODE_SQUARE,
};
-struct CBlip
+struct sRadarTrace
{
uint32 m_nColor;
uint32 m_eBlipType; // eBlipType
@@ -71,7 +71,7 @@ struct CBlip
uint16 m_eBlipDisplay; // eBlipDisplay
uint16 m_eRadarSprite; // eRadarSprite
};
-static_assert(sizeof(CBlip) == 0x30, "CBlip: error");
+static_assert(sizeof(sRadarTrace) == 0x30, "sRadarTrace: error");
// Values for screen space
#define RADAR_LEFT (40.0f)
@@ -83,7 +83,7 @@ class CRadar
{
public:
static float &m_radarRange;
- static CBlip (&ms_RadarTrace)[NUMRADARBLIPS];
+ static sRadarTrace (&ms_RadarTrace)[NUMRADARBLIPS];
static CSprite2d AsukaSprite;
static CSprite2d BombSprite;
static CSprite2d CatSprite;
@@ -144,7 +144,6 @@ public:
static void LoadAllRadarBlips(uint8 *buf, uint32 size);
static void LoadTextures();
static void RemoveRadarSections();
- static void RequestMapSection(int32 x, int32 y);
static void SaveAllRadarBlips(uint8*, uint32*);
static void SetBlipSprite(int32 i, int32 icon);
static int32 SetCoordBlip(eBlipType type, CVector pos, int32, eBlipDisplay);
@@ -161,10 +160,6 @@ public:
static void TransformRadarPointToScreenSpace(CVector2D &out, const CVector2D &in);
static void TransformRealWorldPointToRadarSpace(CVector2D &out, const CVector2D &in);
- // no in CRadar in the game:
- static void GetTextureCorners(int32 x, int32 y, CVector2D *out);
- static void ClipRadarTileCoords(int32 &x, int32 &y);
- static bool IsPointInsideRadar(const CVector2D &);
- static int LineRadarBoxCollision(CVector2D &, const CVector2D &, const CVector2D &);
+ // no in CRadar in the game:
static void CalculateCachedSinCos();
};