1 /* This file is part of the Spring engine (GPL v2 or later), see LICENSE.html */
2 
3 #ifndef SMOKE_PROJECTILE_2_H
4 #define SMOKE_PROJECTILE_2_H
5 
6 #include "Sim/Projectiles/Projectile.h"
7 #include "System/float3.h"
8 
9 class CUnit;
10 
11 class CSmokeProjectile2 : public CProjectile
12 {
13 	CR_DECLARE(CSmokeProjectile2)
14 
15 public:
16 	CSmokeProjectile2();
17 	CSmokeProjectile2(
18 		CUnit* owner,
19 		const float3& pos,
20 		const float3& wantedPos,
21 		const float3& speed,
22 		float ttl,
23 		float startSize,
24 		float sizeExpansion,
25 		float color = 0.7f
26 	);
27 
28 	void Update();
29 	void Draw();
30 	void Init(const CUnit* owner, const float3& offset);
31 
32 private:
33 	float color;
34 	float age;
35 	float ageSpeed;
36 	float size;
37 	float startSize;
38 	float sizeExpansion;
39 	int textureNum;
40 	float3 wantedPos;
41 	float glowFalloff;
42 };
43 
44 #endif /* SMOKE_PROJECTILE_2_H */
45