summaryrefslogtreecommitdiffstats
path: root/source/Entities/ExpOrb.h
diff options
context:
space:
mode:
authorSTRWarrior <niels.breuker@hotmail.nl>2013-11-25 20:05:52 +0100
committerSTRWarrior <niels.breuker@hotmail.nl>2013-11-25 20:05:52 +0100
commit6641db058392dd6d7e170b95cd8616b920add63c (patch)
tree80691f970e071ec8277f5e4f601727d7b86ce4ca /source/Entities/ExpOrb.h
parentImplented SendExperienceOrb in ClientHandle. (diff)
downloadcuberite-6641db058392dd6d7e170b95cd8616b920add63c.tar
cuberite-6641db058392dd6d7e170b95cd8616b920add63c.tar.gz
cuberite-6641db058392dd6d7e170b95cd8616b920add63c.tar.bz2
cuberite-6641db058392dd6d7e170b95cd8616b920add63c.tar.lz
cuberite-6641db058392dd6d7e170b95cd8616b920add63c.tar.xz
cuberite-6641db058392dd6d7e170b95cd8616b920add63c.tar.zst
cuberite-6641db058392dd6d7e170b95cd8616b920add63c.zip
Diffstat (limited to 'source/Entities/ExpOrb.h')
-rw-r--r--source/Entities/ExpOrb.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/source/Entities/ExpOrb.h b/source/Entities/ExpOrb.h
new file mode 100644
index 000000000..0f1b6ede7
--- /dev/null
+++ b/source/Entities/ExpOrb.h
@@ -0,0 +1,29 @@
+
+#pragma once
+
+#include "Entity.h"
+
+
+
+
+
+class cExpOrb :
+ public cEntity
+{
+ typedef cExpOrb super;
+
+public:
+
+ cExpOrb(double a_X, double a_Y, double a_Z, int a_Reward);
+ cExpOrb(const Vector3d & a_Pos, int a_Reward);
+
+ // Override functions
+ virtual void Tick(float a_Dt, cChunk & a_Chunk) override;
+ virtual void SpawnOn(cClientHandle & a_Client) override;
+
+ // cExpOrb functions
+ short int GetReward(void) const { return m_Reward; }
+
+protected:
+ int m_Reward;
+} ; \ No newline at end of file