summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSamuel Barney <samjbarney@gmail.com>2014-08-26 20:58:01 +0200
committerSamuel Barney <samjbarney@gmail.com>2014-08-26 20:58:01 +0200
commitd1cab5eb742313675e6793ff603f6cc128d45bd3 (patch)
tree2005580e88030b80d4a0b1051b1a809cd7494321 /src
parentReworked Component and Monster classes to mimic the old code. (diff)
downloadcuberite-d1cab5eb742313675e6793ff603f6cc128d45bd3.tar
cuberite-d1cab5eb742313675e6793ff603f6cc128d45bd3.tar.gz
cuberite-d1cab5eb742313675e6793ff603f6cc128d45bd3.tar.bz2
cuberite-d1cab5eb742313675e6793ff603f6cc128d45bd3.tar.lz
cuberite-d1cab5eb742313675e6793ff603f6cc128d45bd3.tar.xz
cuberite-d1cab5eb742313675e6793ff603f6cc128d45bd3.tar.zst
cuberite-d1cab5eb742313675e6793ff603f6cc128d45bd3.zip
Diffstat (limited to 'src')
-rw-r--r--src/Mobs/Components/AIAggressiveComponent.cpp1
-rw-r--r--src/Mobs/Components/AIPassiveComponent.cpp18
-rw-r--r--src/Mobs/Components/AIPassiveComponent.h12
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*/;
+};