2012-06-14 09:06:06 -04:00
|
|
|
|
|
|
|
#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
|
|
|
|
|
2012-09-23 18:09:57 -04:00
|
|
|
#include "Pawn.h"
|
2012-06-14 09:06:06 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-07-01 06:39:56 -04:00
|
|
|
cPawn::cPawn(eEntityType a_EntityType, double a_Width, double a_Height)
|
|
|
|
: cEntity(a_EntityType, 0, 0, 0, a_Width, a_Height)
|
2012-06-14 09:06:06 -04:00
|
|
|
, m_bBurnable(true)
|
2014-06-06 03:17:49 -04:00
|
|
|
, m_EntityEffects(std::map<cEntityEffect::eType, cEntityEffect>())
|
2012-06-14 09:06:06 -04:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-06-06 03:17:49 -04:00
|
|
|
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);
|
|
|
|
}
|