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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-13 12:38:06 -04:00
|
|
|
class cAggressiveMonster:
|
2012-12-21 07:52:14 -05:00
|
|
|
public cMonster
|
2011-12-25 17:47:12 -05:00
|
|
|
{
|
2020-04-13 12:38:06 -04:00
|
|
|
using Super = cMonster;
|
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
|
|
|
|
2020-04-13 12:38:06 -04:00
|
|
|
cAggressiveMonster(
|
|
|
|
const AString & a_ConfigName,
|
|
|
|
eMonsterType a_MobType,
|
|
|
|
const AString & a_SoundHurt,
|
|
|
|
const AString & a_SoundDeath,
|
|
|
|
const AString & a_SoundAmbient,
|
2021-04-06 11:09:16 -04:00
|
|
|
float a_Width,
|
|
|
|
float a_Height
|
2020-04-13 12:38:06 -04:00
|
|
|
);
|
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
|
|
|
} ;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|