2012-06-14 09:06:06 -04:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2012-09-23 18:09:57 -04:00
|
|
|
#include "Entity.h"
|
2014-06-06 03:17:49 -04:00
|
|
|
#include "EntityEffects.h"
|
2012-06-14 09:06:06 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-12-21 06:04:08 -05:00
|
|
|
// tolua_begin
|
|
|
|
class cPawn :
|
|
|
|
public cEntity
|
2012-12-21 07:21:20 -05:00
|
|
|
{
|
2012-12-21 06:04:08 -05:00
|
|
|
// tolua_end
|
2012-12-21 07:21:20 -05:00
|
|
|
typedef cEntity super;
|
|
|
|
|
2012-06-14 09:06:06 -04:00
|
|
|
public:
|
2012-12-21 07:21:20 -05:00
|
|
|
CLASS_PROTODEF(cPawn);
|
2012-06-14 09:06:06 -04:00
|
|
|
|
2013-07-01 06:39:56 -04:00
|
|
|
cPawn(eEntityType a_EntityType, double a_Width, double a_Height);
|
2014-06-06 03:17:49 -04:00
|
|
|
|
|
|
|
virtual void Tick(float a_Dt, cChunk & a_Chunk) override;
|
|
|
|
|
|
|
|
void AddEntityEffect(cEntityEffect::eType a_EffectType, cEntityEffect a_Effect);
|
|
|
|
void RemoveEntityEffect(cEntityEffect::eType a_EffectType);
|
2012-06-14 09:06:06 -04:00
|
|
|
|
|
|
|
protected:
|
2014-06-07 03:54:03 -04:00
|
|
|
typedef std::map<cEntityEffect::eType, cEntityEffect> tEffectMap;
|
|
|
|
tEffectMap m_EntityEffects;
|
2014-06-07 00:48:20 -04:00
|
|
|
|
|
|
|
virtual void HandleEntityEffects(cEntityEffect::eType a_EffectType, cEntityEffect a_Effect);
|
2013-07-01 06:39:56 -04:00
|
|
|
} ; // tolua_export
|
2012-06-14 09:06:06 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|