diff options
author | Sergeanur <s.anureev@yandex.ua> | 2021-07-17 23:05:51 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2021-07-17 23:05:51 +0200 |
commit | 7a034142c99e577b0339aefd9599cb7f373c495e (patch) | |
tree | 722b1946daf2b24374c7fcfab0face06af5eefba /src/renderer/WaterCannon.h | |
parent | Merge remote-tracking branch 'origin/miami' into lcs (diff) | |
parent | render -> renderer (original name) (diff) | |
download | re3-7a034142c99e577b0339aefd9599cb7f373c495e.tar re3-7a034142c99e577b0339aefd9599cb7f373c495e.tar.gz re3-7a034142c99e577b0339aefd9599cb7f373c495e.tar.bz2 re3-7a034142c99e577b0339aefd9599cb7f373c495e.tar.lz re3-7a034142c99e577b0339aefd9599cb7f373c495e.tar.xz re3-7a034142c99e577b0339aefd9599cb7f373c495e.tar.zst re3-7a034142c99e577b0339aefd9599cb7f373c495e.zip |
Diffstat (limited to 'src/renderer/WaterCannon.h')
-rw-r--r-- | src/renderer/WaterCannon.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/src/renderer/WaterCannon.h b/src/renderer/WaterCannon.h new file mode 100644 index 00000000..5b60639c --- /dev/null +++ b/src/renderer/WaterCannon.h @@ -0,0 +1,40 @@ +#pragma once + +#define WATERCANNON_GRAVITY (0.009f) +#define WATERCANNON_LIFETIME (150) + +class CWaterCannon +{ +public: + enum + { + NUM_SEGMENTPOINTS = 16, + }; + + int32 m_nId; + int16 m_nCur; + uint32 m_nTimeCreated; + int32 field_C; + CVector m_avecPos[NUM_SEGMENTPOINTS]; + CVector m_avecVelocity[NUM_SEGMENTPOINTS]; + bool m_abUsed[NUM_SEGMENTPOINTS]; + + void Init(void); + void Update_OncePerFrame(int16 index); + void Update_NewInput(CVector *pos, CVector *dir); + void Render(void); + void PushPeds(void); +}; + +VALIDATE_SIZE(CWaterCannon, 0x1A0); + +class CWaterCannons +{ +public: + static CWaterCannon aCannons[NUM_WATERCANNONS]; + + static void Init(void); + static void UpdateOne(uint32 id, CVector *pos, CVector *dir); + static void Update(); + static void Render(void); +};
\ No newline at end of file |