2012-12-21 07:52:14 -05:00
|
|
|
|
2011-12-25 17:47:12 -05:00
|
|
|
#pragma once
|
|
|
|
|
2012-09-23 16:53:08 -04:00
|
|
|
#include "Monster.h"
|
2011-12-25 17:47:12 -05:00
|
|
|
|
2012-12-21 07:52:14 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class cAggressiveMonster :
|
|
|
|
public cMonster
|
2011-12-25 17:47:12 -05:00
|
|
|
{
|
2012-12-21 07:52:14 -05:00
|
|
|
typedef cMonster super;
|
2015-12-22 00:43:50 -05:00
|
|
|
|
2011-12-25 17:47:12 -05:00
|
|
|
public:
|
2014-01-24 14:57:32 -05:00
|
|
|
|
2014-09-17 13:40:10 -04: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 17:47:12 -05:00
|
|
|
|
2015-01-11 16:12:26 -05:00
|
|
|
virtual void Tick (std::chrono::milliseconds a_Dt, cChunk & a_Chunk) override;
|
2015-12-22 00:43:50 -05:00
|
|
|
virtual void InStateChasing(std::chrono::milliseconds a_Dt, cChunk & a_Chunk) override;
|
|
|
|
|
2016-10-12 08:38:45 -04:00
|
|
|
|
|
|
|
virtual void EventSeePlayer(cPlayer * a_Player, cChunk & a_Chunk) override;
|
2015-12-22 00:43:50 -05:00
|
|
|
|
2015-11-09 09:51:35 -05: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 07:44:17 -05:00
|
|
|
virtual bool Attack(std::chrono::milliseconds a_Dt);
|
2012-12-21 07:52:14 -05:00
|
|
|
} ;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|