1
0

Moved Effects.h to EntityEffects.h, added initial impl

This commit is contained in:
archshift
2014-06-06 00:17:49 -07:00
parent c1692a2e3b
commit 87b1bfaf2a
9 changed files with 115 additions and 36 deletions

View File

@@ -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);
}