diff options
author | aap <aap@papnet.eu> | 2019-05-30 11:12:49 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2019-05-30 11:13:06 +0200 |
commit | ee5088b3e185cb2d455cb64d2098e2a807b0ac27 (patch) | |
tree | 10c289476b43b1e11a5bb739fb6ae74b92598c7e /src/render/Antennas.h | |
parent | clean up (diff) | |
download | re3-ee5088b3e185cb2d455cb64d2098e2a807b0ac27.tar re3-ee5088b3e185cb2d455cb64d2098e2a807b0ac27.tar.gz re3-ee5088b3e185cb2d455cb64d2098e2a807b0ac27.tar.bz2 re3-ee5088b3e185cb2d455cb64d2098e2a807b0ac27.tar.lz re3-ee5088b3e185cb2d455cb64d2098e2a807b0ac27.tar.xz re3-ee5088b3e185cb2d455cb64d2098e2a807b0ac27.tar.zst re3-ee5088b3e185cb2d455cb64d2098e2a807b0ac27.zip |
Diffstat (limited to 'src/render/Antennas.h')
-rw-r--r-- | src/render/Antennas.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/render/Antennas.h b/src/render/Antennas.h new file mode 100644 index 00000000..47cb1dad --- /dev/null +++ b/src/render/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); +}; |