Shots fired! ( ゚Д゚)

This commit is contained in:
ViktorLjung
2014-05-13 03:32:58 +02:00
parent 74d3269e35
commit ce5b62cf6d
12 changed files with 70 additions and 74 deletions
+5 -2
View File
@@ -9,10 +9,13 @@ namespace Components
struct BarrelSteering : Component
{
BarrelSteering()
: Velocity(1.f), Axis(glm::vec3(0,1,0)){ }
float Velocity;
: TurnSpeed(1.f), Axis(glm::vec3(0,1,0)){ }
float TurnSpeed;
glm::vec3 Axis;
EntityID ShotTemplate;
float ShotSpeed;
virtual BarrelSteering* Clone() const override { return new BarrelSteering(*this); }
};
}
-17
View File
@@ -1,17 +0,0 @@
#ifndef Shot_h__
#define Shot_h__
#include "Component.h"
namespace Components
{
struct Shot : Component
{
Shot();
float Speed;
};
}
#endif // Shot_h__
+3 -2
View File
@@ -9,10 +9,11 @@
struct TowerSteering : Component
{
TowerSteering()
: Velocity(1.f), Axis(glm::vec3(0,1,0)){ }
: TurnSpeed(1.f), Axis(glm::vec3(0,1,0)){ }
float Velocity;
float TurnSpeed;
glm::vec3 Axis;
virtual TowerSteering* Clone() const override { return new TowerSteering(*this); }
};
}