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