summaryrefslogtreecommitdiffstats
path: root/src/render/Antennas.h
blob: 47cb1dad37c72a1428de2cb5a04db09e143ccbe0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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);
};