summaryrefslogtreecommitdiffstats
path: root/src/Entities/EntityEffects.h
diff options
context:
space:
mode:
authorarchshift <admin@archshift.com>2014-06-13 19:59:59 +0200
committerarchshift <admin@archshift.com>2014-06-17 20:39:22 +0200
commit68c30790db17b9d21b2fcda4c7edec679162c577 (patch)
treef9fc6786d61c4700ea5b65f3b93ef920c8f55171 /src/Entities/EntityEffects.h
parentAPIDump: Added OnEntityAddEffect hook documentation. (diff)
downloadcuberite-68c30790db17b9d21b2fcda4c7edec679162c577.tar
cuberite-68c30790db17b9d21b2fcda4c7edec679162c577.tar.gz
cuberite-68c30790db17b9d21b2fcda4c7edec679162c577.tar.bz2
cuberite-68c30790db17b9d21b2fcda4c7edec679162c577.tar.lz
cuberite-68c30790db17b9d21b2fcda4c7edec679162c577.tar.xz
cuberite-68c30790db17b9d21b2fcda4c7edec679162c577.tar.zst
cuberite-68c30790db17b9d21b2fcda4c7edec679162c577.zip
Diffstat (limited to 'src/Entities/EntityEffects.h')
-rw-r--r--src/Entities/EntityEffects.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Entities/EntityEffects.h b/src/Entities/EntityEffects.h
index 2a4d0f723..9de3fcb86 100644
--- a/src/Entities/EntityEffects.h
+++ b/src/Entities/EntityEffects.h
@@ -46,14 +46,14 @@ public:
short GetIntensity() { return m_Intensity; }
/** Returns the pawn that produced this entity effect */
- cPawn *GetUser() { return m_User; }
+ cPawn *GetCreator() { return m_Creator; }
/** Returns the distance modifier for affecting potency */
double GetDistanceModifier() { return m_DistanceModifier; }
void SetDuration(int a_Duration) { m_Duration = a_Duration; }
void SetIntensity(short a_Intensity) { m_Intensity = a_Intensity; }
- void SetUser(cPawn * a_User) { m_User = a_User; }
+ void SetCreator(cPawn * a_Creator) { m_Creator = a_Creator; }
void SetDistanceModifier(double a_DistanceModifier) { m_DistanceModifier = a_DistanceModifier; }
/** Creates an empty entity effect */
@@ -62,9 +62,9 @@ public:
/** Creates an entity effect of the specified type
@param a_Duration How long this effect will last, in ticks
@param a_Intensity How strong the effect will be applied
- @param a_User The pawn that produced this entity effect
+ @param a_Creator The pawn that produced this entity effect
@param a_DistanceModifier The distance modifier for affecting potency, defaults to 1 */
- cEntityEffect(int a_Duration, short a_Intensity, cPawn * a_User, double a_DistanceModifier = 1);
+ cEntityEffect(int a_Duration, short a_Intensity, cPawn * a_Creator, double a_DistanceModifier = 1);
private:
/** How long this effect will last, in ticks */
@@ -74,7 +74,7 @@ private:
short m_Intensity;
/** The pawn that produced this entity effect (threw the potion, etc) */
- cPawn *m_User;
+ cPawn *m_Creator;
/** The distance modifier for affecting potency */
double m_DistanceModifier;