summaryrefslogtreecommitdiffstats
path: root/src/Entities/EntityEffects.h
diff options
context:
space:
mode:
authorarchshift <admin@archshift.com>2014-06-06 09:17:49 +0200
committerarchshift <admin@archshift.com>2014-06-17 20:17:32 +0200
commit87b1bfaf2aa62bf600293d11d0b3c73cfe9f9e33 (patch)
treec901fa966d4dbaf836f4c06081cd4aeddfa8575f /src/Entities/EntityEffects.h
parentAdded classes for splash potions and wither skulls (diff)
downloadcuberite-87b1bfaf2aa62bf600293d11d0b3c73cfe9f9e33.tar
cuberite-87b1bfaf2aa62bf600293d11d0b3c73cfe9f9e33.tar.gz
cuberite-87b1bfaf2aa62bf600293d11d0b3c73cfe9f9e33.tar.bz2
cuberite-87b1bfaf2aa62bf600293d11d0b3c73cfe9f9e33.tar.lz
cuberite-87b1bfaf2aa62bf600293d11d0b3c73cfe9f9e33.tar.xz
cuberite-87b1bfaf2aa62bf600293d11d0b3c73cfe9f9e33.tar.zst
cuberite-87b1bfaf2aa62bf600293d11d0b3c73cfe9f9e33.zip
Diffstat (limited to '')
-rw-r--r--src/Entities/EntityEffects.h53
1 files changed, 53 insertions, 0 deletions
diff --git a/src/Entities/EntityEffects.h b/src/Entities/EntityEffects.h
new file mode 100644
index 000000000..6ddd86b01
--- /dev/null
+++ b/src/Entities/EntityEffects.h
@@ -0,0 +1,53 @@
+#pragma once
+
+// tolua_begin
+class cEntityEffect {
+public:
+
+ /** All types of entity effects (numbers correspond to IDs) */
+ enum eType
+ {
+ efSpeed = 1,
+ efSlowness = 2,
+ efHaste = 3,
+ efMiningFatigue = 4,
+ efStrength = 5,
+ efInstantHealth = 6,
+ efInstantDamage = 7,
+ efJumpBoost = 8,
+ efNausia = 9,
+ efRegeneration = 10,
+ efResistance = 11,
+ efFireResistance = 12,
+ efWaterBreathing = 13,
+ efInvisibility = 14,
+ efBlindness = 15,
+ efNightVision = 16,
+ efHunger = 17,
+ efWeakness = 18,
+ efPoison = 19,
+ efWither = 20,
+ efHealthBoost = 21,
+ efAbsorption = 22,
+ efSaturation = 23,
+ } ;
+
+ /** The duration of the effect */
+ int m_Ticks;
+
+ /** How strong the effect will be applied */
+ short m_Intensity;
+
+ /**
+ * An empty entity effect
+ */
+ cEntityEffect();
+
+ /**
+ * An entity effect
+ * @param a_Ticks The duration of the effect
+ * @param a_Intensity How strong the effect will be applied
+ */
+ cEntityEffect(int a_Ticks, short a_Intensity);
+};
+// tolua_end