Changed some files so it works with the changes in master. (weaponsystem,capturepoint,some tests)

This commit is contained in:
verysecrethero
2016-01-21 17:36:47 +01:00
parent 4d60f387ed
commit deb6ff1b16
5 changed files with 10 additions and 11 deletions
+2 -2
View File
@@ -94,7 +94,7 @@ CapturePointTest::CapturePointTest(int runTestNumber)
m_World = new World();
// Create system pipeline
m_SystemPipeline = new SystemPipeline(m_EventBroker);
m_SystemPipeline = new SystemPipeline(m_World,m_EventBroker);
m_SystemPipeline->AddSystem<HealthSystem>(0);
m_SystemPipeline->AddSystem<CapturePointSystem>(1);
@@ -405,7 +405,7 @@ void CapturePointTest::Tick()
double dt = 10.0;
// Iterate through systems and update world!
m_SystemPipeline->Update(m_World, dt);
m_SystemPipeline->Update(dt);
m_EventBroker->Swap();
m_EventBroker->Clear();
+1 -1
View File
@@ -48,7 +48,7 @@ GameHealthSystemTest::GameHealthSystemTest()
fp.MergeEntities(m_World);
// Create system pipeline
m_SystemPipeline = new SystemPipeline(m_EventBroker);
m_SystemPipeline = new SystemPipeline(m_World,m_EventBroker);
m_SystemPipeline->AddSystem<HealthSystem>(0);
//The Test
+1 -2
View File
@@ -52,8 +52,7 @@ void RegionTestOld(Tree& tree)
template<typename Tree>
void RegionTest(Tree& tree)
{
AABB aabb;
aabb.CreateFromCenter(glm::vec3(rand() % LEVEL_BOUNDS, rand() % LEVEL_BOUNDS, rand() % LEVEL_BOUNDS),
AABB aabb = AABB::FromOriginSize(glm::vec3(rand() % LEVEL_BOUNDS, rand() % LEVEL_BOUNDS, rand() % LEVEL_BOUNDS),
glm::vec3(rand() % MAXSIZE, rand() % MAXSIZE, rand() % MAXSIZE));
std::vector<AABB> outVec;
tree.ObjectsInSameRegion(aabb, outVec);