summaryrefslogtreecommitdiffstats
path: root/src/Entities/Pawn.cpp
diff options
context:
space:
mode:
authorarchshift <admin@archshift.com>2014-06-06 09:17:49 +0200
committerarchshift <admin@archshift.com>2014-06-17 20:17:32 +0200
commit87b1bfaf2aa62bf600293d11d0b3c73cfe9f9e33 (patch)
treec901fa966d4dbaf836f4c06081cd4aeddfa8575f /src/Entities/Pawn.cpp
parentAdded classes for splash potions and wither skulls (diff)
downloadcuberite-87b1bfaf2aa62bf600293d11d0b3c73cfe9f9e33.tar
cuberite-87b1bfaf2aa62bf600293d11d0b3c73cfe9f9e33.tar.gz
cuberite-87b1bfaf2aa62bf600293d11d0b3c73cfe9f9e33.tar.bz2
cuberite-87b1bfaf2aa62bf600293d11d0b3c73cfe9f9e33.tar.lz
cuberite-87b1bfaf2aa62bf600293d11d0b3c73cfe9f9e33.tar.xz
cuberite-87b1bfaf2aa62bf600293d11d0b3c73cfe9f9e33.tar.zst
cuberite-87b1bfaf2aa62bf600293d11d0b3c73cfe9f9e33.zip
Diffstat (limited to '')
-rw-r--r--src/Entities/Pawn.cpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/Entities/Pawn.cpp b/src/Entities/Pawn.cpp
index fffefd538..e1ddca27e 100644
--- a/src/Entities/Pawn.cpp
+++ b/src/Entities/Pawn.cpp
@@ -10,6 +10,7 @@
cPawn::cPawn(eEntityType a_EntityType, double a_Width, double a_Height)
: cEntity(a_EntityType, 0, 0, 0, a_Width, a_Height)
, m_bBurnable(true)
+ , m_EntityEffects(std::map<cEntityEffect::eType, cEntityEffect>())
{
}
@@ -17,3 +18,27 @@ cPawn::cPawn(eEntityType a_EntityType, double a_Width, double a_Height)
+void cPawn::Tick(float a_Dt, cChunk & a_Chunk)
+{
+
+
+ super::Tick(a_Dt, a_Chunk);
+}
+
+
+
+
+
+void cPawn::AddEntityEffect(cEntityEffect::eType a_EffectType, cEntityEffect a_Effect)
+{
+ m_EntityEffects[a_EffectType] = a_Effect;
+}
+
+
+
+
+
+void cPawn::RemoveEntityEffect(cEntityEffect::eType a_EffectType)
+{
+ m_EntityEffects.erase(a_EffectType);
+}