diff options
-rw-r--r-- | src/Mobs/Components/AIAggressiveComponent.cpp | 1 | ||||
-rw-r--r-- | src/Mobs/Components/AIPassiveComponent.cpp | 18 | ||||
-rw-r--r-- | src/Mobs/Components/AIPassiveComponent.h | 12 |
3 files changed, 30 insertions, 1 deletions
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 <iostream> 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*/; +}; |