2013-07-29 11:13:03 +00:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "AggressiveMonster.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-13 16:38:06 +00:00
|
|
|
class cBlaze:
|
2013-07-29 11:13:03 +00:00
|
|
|
public cAggressiveMonster
|
|
|
|
{
|
2020-04-13 16:38:06 +00:00
|
|
|
using Super = cAggressiveMonster;
|
2016-02-05 21:45:45 +00:00
|
|
|
|
2013-07-29 11:13:03 +00:00
|
|
|
public:
|
2020-04-13 16:38:06 +00:00
|
|
|
|
|
|
|
cBlaze();
|
2013-07-29 11:13:03 +00:00
|
|
|
|
2014-07-22 22:36:13 +00:00
|
|
|
CLASS_PROTODEF(cBlaze)
|
2016-02-05 21:45:45 +00:00
|
|
|
|
2020-03-26 17:54:40 +00:00
|
|
|
virtual void Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk) override;
|
2014-10-20 20:55:07 +00:00
|
|
|
virtual void GetDrops(cItems & a_Drops, cEntity * a_Killer = nullptr) override;
|
2015-11-08 12:44:17 +00:00
|
|
|
virtual bool Attack(std::chrono::milliseconds a_Dt) override;
|
2020-03-26 17:54:40 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
/** Specifies whether or not the blaze has started shooting fireballs. */
|
|
|
|
bool m_IsCharging;
|
|
|
|
|
|
|
|
/** Number of ticks since the blaze started charging.
|
|
|
|
Used to create 3 successive projectiles. */
|
|
|
|
int m_ChargeTimer;
|
2013-07-29 11:13:03 +00:00
|
|
|
} ;
|