summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Barney <samjbarney@gmail.com>2014-08-26 21:07:15 +0200
committerSamuel Barney <samjbarney@gmail.com>2014-08-26 21:07:15 +0200
commit455e41f9aa9b3ea9096c3c8766f8cdf0dfa73c21 (patch)
treebef60a2c737df2c29647bd628b6608680f62fb54
parentRemoved unnecessary library include. (diff)
downloadcuberite-455e41f9aa9b3ea9096c3c8766f8cdf0dfa73c21.tar
cuberite-455e41f9aa9b3ea9096c3c8766f8cdf0dfa73c21.tar.gz
cuberite-455e41f9aa9b3ea9096c3c8766f8cdf0dfa73c21.tar.bz2
cuberite-455e41f9aa9b3ea9096c3c8766f8cdf0dfa73c21.tar.lz
cuberite-455e41f9aa9b3ea9096c3c8766f8cdf0dfa73c21.tar.xz
cuberite-455e41f9aa9b3ea9096c3c8766f8cdf0dfa73c21.tar.zst
cuberite-455e41f9aa9b3ea9096c3c8766f8cdf0dfa73c21.zip
Diffstat (limited to '')
-rw-r--r--src/Mobs/Components/AIAggressiveComponent.cpp1
-rw-r--r--src/Mobs/Components/AIPassiveAgressiveComponent.cpp17
-rw-r--r--src/Mobs/Components/AIPassiveAgressiveComponent.h12
-rw-r--r--src/Mobs/Components/AIPassiveComponent.cpp1
4 files changed, 29 insertions, 2 deletions
diff --git a/src/Mobs/Components/AIAggressiveComponent.cpp b/src/Mobs/Components/AIAggressiveComponent.cpp
index ebf764457..2963da7f0 100644
--- a/src/Mobs/Components/AIAggressiveComponent.cpp
+++ b/src/Mobs/Components/AIAggressiveComponent.cpp
@@ -1,4 +1,3 @@
-
#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
#include "AIAggressiveComponent.h"
diff --git a/src/Mobs/Components/AIPassiveAgressiveComponent.cpp b/src/Mobs/Components/AIPassiveAgressiveComponent.cpp
new file mode 100644
index 000000000..efa88a8fa
--- /dev/null
+++ b/src/Mobs/Components/AIPassiveAgressiveComponent.cpp
@@ -0,0 +1,17 @@
+#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
+#include "cAIPassiveAggressiveComponent.h"
+
+
+
+
+
+cAIPassiveAggressiveComponent::cAIPassiveAggressiveComponent(cMonster * a_Monster) : cAIComponent(a_Monster){}
+
+
+
+
+
+void cAIPassiveAggressiveComponent::Tick(float a_Dt, cChunk & a_Chunk)
+{
+ super::Tick(a_Dt, a_Chunk);
+}
diff --git a/src/Mobs/Components/AIPassiveAgressiveComponent.h b/src/Mobs/Components/AIPassiveAgressiveComponent.h
new file mode 100644
index 000000000..bd35251d0
--- /dev/null
+++ b/src/Mobs/Components/AIPassiveAgressiveComponent.h
@@ -0,0 +1,12 @@
+#pragma once
+#include "AIComponent.h"
+
+class cEntity;
+
+class cAIPassiveAggressiveComponent : public cAIComponent {
+ typedef cAIComponent super;
+protected:
+public:
+ cAIPassiveAggressiveComponent(cMonster * a_Monster);
+ virtual void Tick(float a_Dt, cChunk & a_Chunk) /*override*/;
+};
diff --git a/src/Mobs/Components/AIPassiveComponent.cpp b/src/Mobs/Components/AIPassiveComponent.cpp
index 9293f4f74..ba3fe7ec7 100644
--- a/src/Mobs/Components/AIPassiveComponent.cpp
+++ b/src/Mobs/Components/AIPassiveComponent.cpp
@@ -1,4 +1,3 @@
-
#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
#include "AIPassiveComponent.h"