diff options
author | madmaxoft <github@xoft.cz> | 2014-06-13 11:04:16 +0200 |
---|---|---|
committer | archshift <admin@archshift.com> | 2014-06-17 20:39:21 +0200 |
commit | e289fe4dd7372a029ba85722e3ce99991e9d1d6b (patch) | |
tree | 1bc8ad0d0aa8a7e8685a53bddb0730c4a82122a4 /src/Entities/EntityEffects.h | |
parent | Entity Effect: Separates total duration and ticks of activity (diff) | |
download | cuberite-e289fe4dd7372a029ba85722e3ce99991e9d1d6b.tar cuberite-e289fe4dd7372a029ba85722e3ce99991e9d1d6b.tar.gz cuberite-e289fe4dd7372a029ba85722e3ce99991e9d1d6b.tar.bz2 cuberite-e289fe4dd7372a029ba85722e3ce99991e9d1d6b.tar.lz cuberite-e289fe4dd7372a029ba85722e3ce99991e9d1d6b.tar.xz cuberite-e289fe4dd7372a029ba85722e3ce99991e9d1d6b.tar.zst cuberite-e289fe4dd7372a029ba85722e3ce99991e9d1d6b.zip |
Diffstat (limited to 'src/Entities/EntityEffects.h')
-rw-r--r-- | src/Entities/EntityEffects.h | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/src/Entities/EntityEffects.h b/src/Entities/EntityEffects.h index 6b2532aae..c0e8abd28 100644 --- a/src/Entities/EntityEffects.h +++ b/src/Entities/EntityEffects.h @@ -3,7 +3,8 @@ class cPawn; // tolua_begin -class cEntityEffect { +class cEntityEffect +{ public: /** All types of entity effects (numbers correspond to IDs) */ @@ -52,25 +53,21 @@ public: 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 SetUser(cPawn * a_User) { m_User = a_User; } void SetDistanceModifier(double a_DistanceModifier) { m_DistanceModifier = a_DistanceModifier; } - /** - * An empty entity effect - */ - cEntityEffect(); + /** Creates an empty entity effect */ + cEntityEffect(void); - /** - * An entity effect - * @param a_Duration How long this effect will last - * @param a_Intensity How strong the effect will be applied - * @param a_User The pawn that used 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); + /** 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 used 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); private: - /** How long this effect will last */ + /** How long this effect will last, in ticks */ int m_Duration; /** How strong the effect will be applied */ |