diff options
author | erorcun <erayorcunus@gmail.com> | 2020-01-07 15:08:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-07 15:08:51 +0100 |
commit | 18de44e038c904e4de21f42a12afa188146587d1 (patch) | |
tree | 6efdd7adc1648fd63414227dcd9ac13d54ab31b5 /src/core/World.h | |
parent | Use CGeneral::faststricmp in CPed::ServiceTalking (diff) | |
parent | fixes (diff) | |
download | re3-18de44e038c904e4de21f42a12afa188146587d1.tar re3-18de44e038c904e4de21f42a12afa188146587d1.tar.gz re3-18de44e038c904e4de21f42a12afa188146587d1.tar.bz2 re3-18de44e038c904e4de21f42a12afa188146587d1.tar.lz re3-18de44e038c904e4de21f42a12afa188146587d1.tar.xz re3-18de44e038c904e4de21f42a12afa188146587d1.tar.zst re3-18de44e038c904e4de21f42a12afa188146587d1.zip |
Diffstat (limited to 'src/core/World.h')
-rw-r--r-- | src/core/World.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/World.h b/src/core/World.h index 119c6324..61a44ea0 100644 --- a/src/core/World.h +++ b/src/core/World.h @@ -22,6 +22,8 @@ #define WORLD_MAX_X (WORLD_MIN_X + WORLD_SIZE_X) #define WORLD_MAX_Y (WORLD_MIN_Y + WORLD_SIZE_Y) +#define MAP_Z_LOW_LIMIT -100.0f + enum { ENTITYLIST_BUILDINGS, @@ -103,11 +105,15 @@ public: static CEntity *TestSphereAgainstSectorList(CPtrList&, CVector, float, CEntity*, bool); static void FindObjectsInRangeSectorList(CPtrList&, CVector&, float, bool, short*, short, CEntity**); static void FindObjectsInRange(CVector&, float, bool, short*, short, CEntity**, bool, bool, bool, bool, bool); + static void FindObjectsOfTypeInRangeSectorList(uint32, CPtrList&, CVector&, float, bool, short*, short, CEntity**); + static void FindObjectsOfTypeInRange(uint32, CVector&, float, bool, short*, short, CEntity**, bool, bool, bool, bool, bool); static float FindGroundZForCoord(float x, float y); static float FindGroundZFor3DCoord(float x, float y, float z, bool *found); static float FindRoofZFor3DCoord(float x, float y, float z, bool *found); static void RemoveReferencesToDeletedObject(CEntity*); static void FindObjectsKindaColliding(const CVector &, float, bool, int16*, int16, CEntity **, bool, bool, bool, bool, bool); + static void FindObjectsIntersectingCube(const CVector &, const CVector &, int16*, int16, CEntity **, bool, bool, bool, bool, bool); + static void FindObjectsIntersectingAngledCollisionBox(const CColBox &, const CMatrix &, const CVector &, float, float, float, float, int16*, int16, CEntity **, bool, bool, bool, bool, bool); static float GetSectorX(float f) { return ((f - WORLD_MIN_X)/SECTOR_SIZE_X); } static float GetSectorY(float f) { return ((f - WORLD_MIN_Y)/SECTOR_SIZE_Y); } |