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;
|
2015-12-22 05:43:50 +00:00
|
|
|
|
2011-12-25 22:47:12 +00:00
|
|
|
public:
|
2014-01-24 19:57:32 +00:00
|
|
|
|
2014-09-17 17:40:10 +00: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-12-22 05:43:50 +00:00
|
|
|
virtual void InStateChasing(std::chrono::milliseconds a_Dt, cChunk & a_Chunk) override;
|
|
|
|
|
2016-10-12 12:38:45 +00:00
|
|
|
|
|
|
|
virtual void EventSeePlayer(cPlayer * a_Player, cChunk & a_Chunk) override;
|
2015-12-22 05:43:50 +00:00
|
|
|
|
2015-11-09 14:51:35 +00:00
|
|
|
/** Try to perform attack
|
|
|
|
returns true if attack was deemed successful (hit player, fired projectile, creeper exploded, etc.) even if it didn't actually do damage
|
|
|
|
return false if e.g. the mob is still in cooldown from a previous attack */
|
2015-11-08 12:44:17 +00:00
|
|
|
virtual bool Attack(std::chrono::milliseconds a_Dt);
|
2012-12-21 12:52:14 +00:00
|
|
|
} ;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|