From d1cab5eb742313675e6793ff603f6cc128d45bd3 Mon Sep 17 00:00:00 2001 From: Samuel Barney Date: Tue, 26 Aug 2014 12:58:01 -0600 Subject: Removed unnecessary library include. Added AIPassiveComponent. --- src/Mobs/Components/AIAggressiveComponent.cpp | 1 - src/Mobs/Components/AIPassiveComponent.cpp | 18 ++++++++++++++++++ src/Mobs/Components/AIPassiveComponent.h | 12 ++++++++++++ 3 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 src/Mobs/Components/AIPassiveComponent.cpp create mode 100644 src/Mobs/Components/AIPassiveComponent.h (limited to 'src') diff --git a/src/Mobs/Components/AIAggressiveComponent.cpp b/src/Mobs/Components/AIAggressiveComponent.cpp index a89d157fe..ebf764457 100644 --- a/src/Mobs/Components/AIAggressiveComponent.cpp +++ b/src/Mobs/Components/AIAggressiveComponent.cpp @@ -1,7 +1,6 @@ #include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules #include "AIAggressiveComponent.h" -#include diff --git a/src/Mobs/Components/AIPassiveComponent.cpp b/src/Mobs/Components/AIPassiveComponent.cpp new file mode 100644 index 000000000..9293f4f74 --- /dev/null +++ b/src/Mobs/Components/AIPassiveComponent.cpp @@ -0,0 +1,18 @@ + +#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules +#include "AIPassiveComponent.h" + + + + + +cAIPassiveComponent::cAIPassiveComponent(cMonster * a_Monster) : cAIComponent(a_Monster){} + + + + + +void cAIPassiveComponent::Tick(float a_Dt, cChunk & a_Chunk) +{ + super::Tick(a_Dt, a_Chunk); +} \ No newline at end of file diff --git a/src/Mobs/Components/AIPassiveComponent.h b/src/Mobs/Components/AIPassiveComponent.h new file mode 100644 index 000000000..ab2e5afdb --- /dev/null +++ b/src/Mobs/Components/AIPassiveComponent.h @@ -0,0 +1,12 @@ +#pragma once +#include "AIComponent.h" + +class cEntity; + +class cAIPassiveComponent : public cAIComponent { + typedef cAIComponent super; +protected: +public: + cAIPassiveComponent(cMonster * a_Monster); + virtual void Tick(float a_Dt, cChunk & a_Chunk) /*override*/; +}; -- cgit v1.2.3