summaryrefslogtreecommitdiffstats
path: root/src/Entities/Pawn.h
diff options
context:
space:
mode:
authorarchshift <admin@archshift.com>2014-06-13 11:41:43 +0200
committerarchshift <admin@archshift.com>2014-06-17 20:39:22 +0200
commit9e8361976b6b0dc4c62ef48a4744ba1f59fe4346 (patch)
treef474d56be32cc0d830b95f0d1283d8b1ee43b212 /src/Entities/Pawn.h
parentChanged the AddEntityEffect() params for easier calls. (diff)
downloadcuberite-9e8361976b6b0dc4c62ef48a4744ba1f59fe4346.tar
cuberite-9e8361976b6b0dc4c62ef48a4744ba1f59fe4346.tar.gz
cuberite-9e8361976b6b0dc4c62ef48a4744ba1f59fe4346.tar.bz2
cuberite-9e8361976b6b0dc4c62ef48a4744ba1f59fe4346.tar.lz
cuberite-9e8361976b6b0dc4c62ef48a4744ba1f59fe4346.tar.xz
cuberite-9e8361976b6b0dc4c62ef48a4744ba1f59fe4346.tar.zst
cuberite-9e8361976b6b0dc4c62ef48a4744ba1f59fe4346.zip
Diffstat (limited to 'src/Entities/Pawn.h')
-rw-r--r--src/Entities/Pawn.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/Entities/Pawn.h b/src/Entities/Pawn.h
index 399e02e64..3b83ec52f 100644
--- a/src/Entities/Pawn.h
+++ b/src/Entities/Pawn.h
@@ -26,10 +26,19 @@ public:
// tolua_begin
/** Applies an entity effect
+ @param a_EffectType The entity effect to apply
+ @param a_EffectDurationTicks The duration of the effect
+ @param a_EffectIntensity The level of the effect (0 = Potion I, 1 = Potion II, etc)
+ @param a_User The pawn that produced the effect (e.g. threw the potion)
+ @param a_DistanceModifier The scalar multiplied to the potion duration, only applies to splash potions)
+ */
+ void AddEntityEffect(cEntityEffect::eType a_EffectType, int a_EffectDurationTicks, short a_EffectIntensity, cPawn * a_User, double a_DistanceModifier = 1);
+
+ /** Applies an entity effect
@param a_EffectType The entity effect to apply
@param a_Effect The parameters of the effect
*/
- void AddEntityEffect(cEntityEffect::eType a_EffectType, int a_EffectDurationTicks, short a_EffectIntensity, double a_DistanceModifier = 1);
+ void AddEntityEffect(cEntityEffect::eType a_EffectType, cEntityEffect a_Effect);
/** Removes a currently applied entity effect
@param a_EffectType The entity effect to remove