diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2019-07-06 17:06:08 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2019-07-06 17:06:08 +0200 |
commit | b1500fbe030ba985f8ff1ce759d9f3d83c0c42d9 (patch) | |
tree | 41de08821d8568ad3f83ba087741d9c1d6aa1543 /src/control/Script.h | |
parent | misc classes finished (diff) | |
download | re3-b1500fbe030ba985f8ff1ce759d9f3d83c0c42d9.tar re3-b1500fbe030ba985f8ff1ce759d9f3d83c0c42d9.tar.gz re3-b1500fbe030ba985f8ff1ce759d9f3d83c0c42d9.tar.bz2 re3-b1500fbe030ba985f8ff1ce759d9f3d83c0c42d9.tar.lz re3-b1500fbe030ba985f8ff1ce759d9f3d83c0c42d9.tar.xz re3-b1500fbe030ba985f8ff1ce759d9f3d83c0c42d9.tar.zst re3-b1500fbe030ba985f8ff1ce759d9f3d83c0c42d9.zip |
Diffstat (limited to '')
-rw-r--r-- | src/control/Script.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/control/Script.h b/src/control/Script.h index 7b62a1b0..42e41c70 100644 --- a/src/control/Script.h +++ b/src/control/Script.h @@ -101,16 +101,24 @@ class CUpsideDownCarCheck public: void Init(); + bool IsCarUpsideDown(int32); + void UpdateTimers(); + bool AreAnyCarsUpsideDown(); + void AddCarToCheck(int32); + void RemoveCarFromCheck(int32); + bool HasCarBeenUpsideDownForAWhile(int32); }; struct CStuckCarCheckEntry { int32 m_nVehicleIndex; CVector m_vecPos; - int32 m_nStartTime; - float m_fDistance; + int32 m_nLastCheck; + float m_fRadius; uint32 m_nStuckTime; bool m_bStuck; + + inline void Reset(); }; class CStuckCarCheck @@ -119,6 +127,10 @@ class CStuckCarCheck public: void Init(); + void Process(); + void AddCarToCheck(int32, float, uint32); + void RemoveCarFromCheck(int32); + bool HasCarBeenStuckForAWhile(int32); }; class CTheScripts |