2012-12-21 12:52:14 +00:00
|
|
|
|
2011-12-25 22:47:12 +00:00
|
|
|
#pragma once
|
|
|
|
|
2012-09-23 20:53:08 +00:00
|
|
|
#include "Monster.h"
|
2011-12-25 22:47:12 +00:00
|
|
|
|
2012-12-21 12:52:14 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class cAggressiveMonster :
|
|
|
|
public cMonster
|
2011-12-25 22:47:12 +00:00
|
|
|
{
|
2012-12-21 12:52:14 +00:00
|
|
|
typedef cMonster super;
|
|
|
|
|
2011-12-25 22:47:12 +00:00
|
|
|
public:
|
2014-01-24 19:57:32 +00:00
|
|
|
|
2014-09-17 18:40:10 +01:00
|
|
|
cAggressiveMonster(const AString & a_ConfigName, eMonsterType a_MobType, const AString & a_SoundHurt, const AString & a_SoundDeath, double a_Width, double a_Height);
|
2011-12-25 22:47:12 +00:00
|
|
|
|
2015-01-11 21:12:26 +00:00
|
|
|
virtual void Tick (std::chrono::milliseconds a_Dt, cChunk & a_Chunk) override;
|
2015-01-16 14:38:21 +00:00
|
|
|
virtual void InStateChasing(std::chrono::milliseconds a_Dt) override;
|
2012-12-21 12:52:14 +00:00
|
|
|
|
2013-04-13 21:02:10 +00:00
|
|
|
virtual void EventSeePlayer(cEntity *) override;
|
2015-01-11 21:12:26 +00:00
|
|
|
virtual void Attack(std::chrono::milliseconds a_Dt);
|
2013-09-07 20:02:50 +02:00
|
|
|
|
2014-04-25 12:59:55 -07:00
|
|
|
protected:
|
2014-04-26 09:21:49 -07:00
|
|
|
/** Whether this mob's destination is the same as its target's position. */
|
2014-04-25 12:59:55 -07:00
|
|
|
bool IsMovingToTargetPosition();
|
|
|
|
|
2012-12-21 12:52:14 +00:00
|
|
|
} ;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|