summaryrefslogtreecommitdiffstats
path: root/src/Entities/EntityEffects.cpp
diff options
context:
space:
mode:
authorarchshift <admin@archshift.com>2014-06-07 08:05:29 +0200
committerarchshift <admin@archshift.com>2014-06-17 20:39:19 +0200
commita9a4c9c6b25438aaebdeef03c323e9aa4a0348c2 (patch)
treeac30c249763e1b1c62dbfda585c62ecb56212adb /src/Entities/EntityEffects.cpp
parentPlayer: Removed food-poisoning-specific code, set duration to 30 seconds (diff)
downloadcuberite-a9a4c9c6b25438aaebdeef03c323e9aa4a0348c2.tar
cuberite-a9a4c9c6b25438aaebdeef03c323e9aa4a0348c2.tar.gz
cuberite-a9a4c9c6b25438aaebdeef03c323e9aa4a0348c2.tar.bz2
cuberite-a9a4c9c6b25438aaebdeef03c323e9aa4a0348c2.tar.lz
cuberite-a9a4c9c6b25438aaebdeef03c323e9aa4a0348c2.tar.xz
cuberite-a9a4c9c6b25438aaebdeef03c323e9aa4a0348c2.tar.zst
cuberite-a9a4c9c6b25438aaebdeef03c323e9aa4a0348c2.zip
Diffstat (limited to 'src/Entities/EntityEffects.cpp')
-rw-r--r--src/Entities/EntityEffects.cpp14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/Entities/EntityEffects.cpp b/src/Entities/EntityEffects.cpp
index 3aa3fd1ed..c74463bfa 100644
--- a/src/Entities/EntityEffects.cpp
+++ b/src/Entities/EntityEffects.cpp
@@ -1,14 +1,16 @@
#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
#include "EntityEffects.h"
-
+#include "Pawn.h"
cEntityEffect::cEntityEffect():
m_Ticks(0),
- m_Intensity(0)
+ m_Intensity(0),
+ m_User(NULL),
+ m_DistanceModifier(1)
{
}
@@ -17,9 +19,11 @@ cEntityEffect::cEntityEffect():
-cEntityEffect::cEntityEffect(int a_Ticks, short a_Intensity):
+cEntityEffect::cEntityEffect(int a_Ticks, short a_Intensity, cPawn *a_User, double a_DistanceModifier):
m_Ticks(a_Ticks),
- m_Intensity(a_Intensity)
+ m_Intensity(a_Intensity),
+ m_User(a_User),
+ m_DistanceModifier(a_DistanceModifier)
{
-}
+} \ No newline at end of file