diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2021-07-24 00:47:04 +0300 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2021-07-24 00:47:04 +0300 |
commit | a7e673c2ec6a5ed25f3bae8caab90e2113158c03 (patch) | |
tree | 8c88859a32b0613a4c28fd1a0432504403e5a5e6 /src/renderer/Antennas.h | |
parent | a4b92fe9bec17ad00dc436574f57844c4b8d49f5 (diff) |
sync
Diffstat (limited to 'src/renderer/Antennas.h')
-rw-r--r-- | src/renderer/Antennas.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/renderer/Antennas.h b/src/renderer/Antennas.h new file mode 100644 index 00000000..47cb1dad --- /dev/null +++ b/src/renderer/Antennas.h @@ -0,0 +1,25 @@ +#pragma once + +class CAntenna +{ +public: + bool active; + bool updatedLastFrame; + uint32 id; + float segmentLength; + CVector pos[6]; + CVector speed[6]; + + void Update(CVector dir, CVector pos); +}; + +class CAntennas +{ + // no need to use game's array + static CAntenna aAntennas[NUMANTENNAS]; +public: + static void Init(void); + static void Update(void); + static void RegisterOne(uint32 id, CVector dir, CVector position, float length); + static void Render(void); +}; |