diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-04-14 12:08:03 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-04-14 12:08:03 +0200 |
commit | a19fa8764f63b4521873bbee8d2549c23d4be70a (patch) | |
tree | a326b5138920a48a0a3153c30443841fb528d495 /src/control/CarGen.h | |
parent | Debug font and CProfiles (diff) | |
download | re3-a19fa8764f63b4521873bbee8d2549c23d4be70a.tar re3-a19fa8764f63b4521873bbee8d2549c23d4be70a.tar.gz re3-a19fa8764f63b4521873bbee8d2549c23d4be70a.tar.bz2 re3-a19fa8764f63b4521873bbee8d2549c23d4be70a.tar.lz re3-a19fa8764f63b4521873bbee8d2549c23d4be70a.tar.xz re3-a19fa8764f63b4521873bbee8d2549c23d4be70a.tar.zst re3-a19fa8764f63b4521873bbee8d2549c23d4be70a.zip |
Diffstat (limited to 'src/control/CarGen.h')
-rw-r--r-- | src/control/CarGen.h | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/src/control/CarGen.h b/src/control/CarGen.h deleted file mode 100644 index 75acdd56..00000000 --- a/src/control/CarGen.h +++ /dev/null @@ -1,56 +0,0 @@ -#pragma once -#include "common.h" -#include "config.h" - -enum { - CARGEN_MAXACTUALLIMIT = 100 -}; - -class CCarGenerator -{ - int32 m_nModelIndex; - CVector m_vecPos; - float m_fAngle; - int16 m_nColor1; - int16 m_nColor2; - uint8 m_bForceSpawn; - uint8 m_nAlarm; - uint8 m_nDoorlock; - int16 m_nMinDelay; - int16 m_nMaxDelay; - uint32 m_nTimer; - int32 m_nVehicleHandle; - uint16 m_nUsesRemaining; - bool m_bIsBlocking; - CVector m_vecInf; - CVector m_vecSup; - float m_fSize; -public: - void SwitchOff(); - void SwitchOn(); - uint32 CalcNextGen(); - void DoInternalProcessing(); - void Process(); - void Setup(float x, float y, float z, float angle, int32 mi, int16 color1, int16 color2, uint8 force, uint8 alarm, uint8 lock, uint16 min_delay, uint16 max_delay); - bool CheckForBlockage(); - bool CheckIfWithinRangeOfAnyPlayer(); - void Save(uint8*&); - void Load(uint8*&); - void SetUsesRemaining(uint16 uses) { m_nUsesRemaining = uses; } -}; - -class CTheCarGenerators -{ -public: - static uint8 &ProcessCounter; - static uint32 &NumOfCarGenerators; - static CCarGenerator (&CarGeneratorArray)[NUM_CARGENS]; - static uint8 &GenerateEvenIfPlayerIsCloseCounter; - static uint32 &CurrentActiveCount; - - static void Process(); - static int32 CreateCarGenerator(float x, float y, float z, float angle, int32 mi, int16 color1, int16 color2, uint8 force, uint8 alarm, uint8 lock, uint16 min_delay, uint16 max_delay); - static void Init(); - static void SaveAllCarGenerators(uint8 *, uint32 *); - static void LoadAllCarGenerators(uint8 *, uint32); -}; |