2012-06-14 06:06:06 -07:00
|
|
|
|
|
|
|
#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
|
|
|
|
|
2012-09-23 13:53:08 -07:00
|
|
|
#include "PassiveAggressiveMonster.h"
|
2012-06-14 06:06:06 -07:00
|
|
|
|
2012-09-23 15:09:57 -07:00
|
|
|
#include "../Player.h"
|
2012-06-14 06:06:06 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cPassiveAggressiveMonster::cPassiveAggressiveMonster()
|
|
|
|
{
|
|
|
|
m_EMPersonality = PASSIVE;
|
|
|
|
}
|
|
|
|
|
|
|
|
cPassiveAggressiveMonster::~cPassiveAggressiveMonster()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void cPassiveAggressiveMonster::TakeDamage(int a_Damage, cEntity* a_Instigator)
|
|
|
|
{
|
|
|
|
cMonster::TakeDamage(a_Damage, a_Instigator);
|
|
|
|
if(m_Target->GetEntityType() == cEntity::eEntityType_Player)
|
|
|
|
{
|
|
|
|
cPlayer * Player = (cPlayer *) m_Target;
|
|
|
|
if(Player->GetGameMode() != 1)
|
|
|
|
{
|
|
|
|
m_EMState = CHASING;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
void cPassiveAggressiveMonster::EventSeePlayer(cEntity *a_Entity)
|
|
|
|
{
|
|
|
|
return cMonster::EventSeePlayer(a_Entity);
|
2011-12-25 14:47:12 -08:00
|
|
|
}
|