summaryrefslogtreecommitdiffstats
path: root/src/Entities/Compoments/AttackComponent.h
diff options
context:
space:
mode:
authorSamuel Barney <samjbarney@gmail.com>2013-12-28 21:25:41 +0100
committerSamuel Barney <samjbarney@gmail.com>2013-12-28 21:38:55 +0100
commitee00d189724c99f5fe5f7b1008b22632365f8235 (patch)
tree34f772a10bcb1d76c83f1501b7e4b9f7e44cbe8c /src/Entities/Compoments/AttackComponent.h
parentRemoved unnecessary base class and added some hooks. (diff)
downloadcuberite-ee00d189724c99f5fe5f7b1008b22632365f8235.tar
cuberite-ee00d189724c99f5fe5f7b1008b22632365f8235.tar.gz
cuberite-ee00d189724c99f5fe5f7b1008b22632365f8235.tar.bz2
cuberite-ee00d189724c99f5fe5f7b1008b22632365f8235.tar.lz
cuberite-ee00d189724c99f5fe5f7b1008b22632365f8235.tar.xz
cuberite-ee00d189724c99f5fe5f7b1008b22632365f8235.tar.zst
cuberite-ee00d189724c99f5fe5f7b1008b22632365f8235.zip
Diffstat (limited to 'src/Entities/Compoments/AttackComponent.h')
-rw-r--r--src/Entities/Compoments/AttackComponent.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/Entities/Compoments/AttackComponent.h b/src/Entities/Compoments/AttackComponent.h
new file mode 100644
index 000000000..1b465ef4f
--- /dev/null
+++ b/src/Entities/Compoments/AttackComponent.h
@@ -0,0 +1,14 @@
+#pragma once
+
+#include "../Entity.h"
+
+class cAttackComponent
+{
+protected:
+ cEntity * m_Self;
+public:
+ cAttackComponent(cEntity * a_Entity) : m_Self(a_Entity){}
+
+ virtual void OnAttackEntity(cEntity * a_Entity){}
+
+}; \ No newline at end of file