summaryrefslogtreecommitdiffstats
path: root/src/Mobs
diff options
context:
space:
mode:
authorSamuel Barney <samjbarney@gmail.com>2014-08-21 00:39:44 +0200
committerSamuel Barney <samjbarney@gmail.com>2014-08-21 00:39:44 +0200
commitf7217d5f7c9b290de2dac8837b265201b856ee16 (patch)
tree87ca787c25390d19d58796b597dcc18e0a62c0f5 /src/Mobs
parentAdded the other base components (diff)
downloadcuberite-f7217d5f7c9b290de2dac8837b265201b856ee16.tar
cuberite-f7217d5f7c9b290de2dac8837b265201b856ee16.tar.gz
cuberite-f7217d5f7c9b290de2dac8837b265201b856ee16.tar.bz2
cuberite-f7217d5f7c9b290de2dac8837b265201b856ee16.tar.lz
cuberite-f7217d5f7c9b290de2dac8837b265201b856ee16.tar.xz
cuberite-f7217d5f7c9b290de2dac8837b265201b856ee16.tar.zst
cuberite-f7217d5f7c9b290de2dac8837b265201b856ee16.zip
Diffstat (limited to 'src/Mobs')
-rw-r--r--src/Mobs/Components/AllComponents.h5
-rw-r--r--src/Mobs/Components/AttackComponent.h16
-rw-r--r--src/Mobs/Components/EnvironmentComponent.h16
-rw-r--r--src/Mobs/Components/MovementComponent.h16
4 files changed, 52 insertions, 1 deletions
diff --git a/src/Mobs/Components/AllComponents.h b/src/Mobs/Components/AllComponents.h
index 1c8a76714..04de7a91b 100644
--- a/src/Mobs/Components/AllComponents.h
+++ b/src/Mobs/Components/AllComponents.h
@@ -1,3 +1,6 @@
#pragma once
-#include "AIAggressiveComponent.h"
+#include "AIComponent.h"
+#include "AttackComponent.h"
+#include "EnvironmentComponent.h"
+#include "MovementComponent.h"
diff --git a/src/Mobs/Components/AttackComponent.h b/src/Mobs/Components/AttackComponent.h
index e69de29bb..4318070bd 100644
--- a/src/Mobs/Components/AttackComponent.h
+++ b/src/Mobs/Components/AttackComponent.h
@@ -0,0 +1,16 @@
+#pragma once
+
+class cNewMonster;
+class cEntity;
+class cChunk;
+
+class cAttackComponent
+{
+protected:
+ cNewMonster * m_Self;
+public:
+ cAttackComponent(cNewMonster * a_Entity);
+ virtual ~cAttackComponent(){}
+
+ virtual void Tick(float a_Dt, cChunk & a_Chunk){}
+};
diff --git a/src/Mobs/Components/EnvironmentComponent.h b/src/Mobs/Components/EnvironmentComponent.h
index e69de29bb..0011b72e5 100644
--- a/src/Mobs/Components/EnvironmentComponent.h
+++ b/src/Mobs/Components/EnvironmentComponent.h
@@ -0,0 +1,16 @@
+#pragma once
+
+class cNewMonster;
+class cEntity;
+class cChunk;
+
+class cEnvironmentComponent
+{
+protected:
+ cNewMonster * m_Self;
+public:
+ cEnvironmentComponent(cNewMonster * a_Entity);
+ virtual ~cEnvironmentComponent(){}
+
+ virtual void Tick(float a_Dt, cChunk & a_Chunk){}
+};
diff --git a/src/Mobs/Components/MovementComponent.h b/src/Mobs/Components/MovementComponent.h
index e69de29bb..3b8b7e9eb 100644
--- a/src/Mobs/Components/MovementComponent.h
+++ b/src/Mobs/Components/MovementComponent.h
@@ -0,0 +1,16 @@
+#pragma once
+
+class cNewMonster;
+class cEntity;
+class cChunk;
+
+class cMovementComponent
+{
+protected:
+ cNewMonster * m_Self;
+public:
+ cMovementComponent(cNewMonster * a_Entity);
+ virtual ~cMovementComponent(){}
+
+ virtual void Tick(float a_Dt, cChunk & a_Chunk){}
+};