summaryrefslogtreecommitdiffstats
path: root/src/Entities/EntityEffect.h
diff options
context:
space:
mode:
authorarchshift <admin@archshift.com>2014-07-20 11:56:59 +0200
committerarchshift <admin@archshift.com>2014-07-26 12:48:16 +0200
commit0298d34406b1582e882795bf4d9d3fea18fd0135 (patch)
tree764cf6c7089b3a80f5a4c457d6c44f963deb2a1f /src/Entities/EntityEffect.h
parentEndianness.h: undefined ntohll before redefining (diff)
downloadcuberite-0298d34406b1582e882795bf4d9d3fea18fd0135.tar
cuberite-0298d34406b1582e882795bf4d9d3fea18fd0135.tar.gz
cuberite-0298d34406b1582e882795bf4d9d3fea18fd0135.tar.bz2
cuberite-0298d34406b1582e882795bf4d9d3fea18fd0135.tar.lz
cuberite-0298d34406b1582e882795bf4d9d3fea18fd0135.tar.xz
cuberite-0298d34406b1582e882795bf4d9d3fea18fd0135.tar.zst
cuberite-0298d34406b1582e882795bf4d9d3fea18fd0135.zip
Diffstat (limited to '')
-rw-r--r--src/Entities/EntityEffect.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/Entities/EntityEffect.h b/src/Entities/EntityEffect.h
index 396a9bbe0..04e25e303 100644
--- a/src/Entities/EntityEffect.h
+++ b/src/Entities/EntityEffect.h
@@ -36,6 +36,25 @@ public:
effSaturation = 23,
} ;
+ /** Returns the potion color (used by the client for visuals), based on the potion's damage value */
+ static int GetPotionColor(short a_ItemDamage);
+
+
+ /** Translates the potion's damage value into the entity effect that the potion gives */
+ static cEntityEffect::eType GetPotionEffectType(short a_ItemDamage);
+
+
+ /** Retrieves the intensity level from the potion's damage value.
+ Returns 0 for level I potions, 1 for level II potions. */
+ static short GetPotionEffectIntensity(short a_ItemDamage);
+
+
+ /** Returns the effect duration, in ticks, based on the potion's damage value */
+ static int GetPotionEffectDuration(short a_ItemDamage);
+
+ /** Returns true if the potion with the given damage is drinkable */
+ static bool IsPotionDrinkable(short a_ItemDamage);
+
// tolua_end
/** Creates an empty entity effect */