diff options
author | Samuel Barney <samjbarney@gmail.com> | 2013-12-28 21:25:41 +0100 |
---|---|---|
committer | Samuel Barney <samjbarney@gmail.com> | 2013-12-28 21:38:55 +0100 |
commit | ee00d189724c99f5fe5f7b1008b22632365f8235 (patch) | |
tree | 34f772a10bcb1d76c83f1501b7e4b9f7e44cbe8c /src/Entities/Compoments/InteractionComponent.h | |
parent | Removed unnecessary base class and added some hooks. (diff) | |
download | cuberite-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/InteractionComponent.h')
-rw-r--r-- | src/Entities/Compoments/InteractionComponent.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/Entities/Compoments/InteractionComponent.h b/src/Entities/Compoments/InteractionComponent.h new file mode 100644 index 000000000..bd5b7c281 --- /dev/null +++ b/src/Entities/Compoments/InteractionComponent.h @@ -0,0 +1,20 @@ +#pragma once + +#include "../Entity.h" + +class cInteractionComponent +{ +protected: + cEntity * m_Self; +public: + cInteractionComponent(cEntity * a_Entity) : m_Self(a_Entity){} + + virtual void OnCollisionWithEntity(cEntity * a_Entity){} + + virtual void OnTakeDamage(TakeDamageInfo & a_TDI){} + virtual void OnRightClicked(){} + virtual void OnKilled(cEntity * a_Killer = NULL){} + // virtual void OnPickup(){} + // virtual void OnDestroy(){} + +};
\ No newline at end of file |