2013-07-29 07:13:03 -04:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "AggressiveMonster.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-13 12:38:06 -04:00
|
|
|
class cBlaze:
|
2013-07-29 07:13:03 -04:00
|
|
|
public cAggressiveMonster
|
|
|
|
{
|
2020-04-13 12:38:06 -04:00
|
|
|
using Super = cAggressiveMonster;
|
2016-02-05 16:45:45 -05:00
|
|
|
|
2013-07-29 07:13:03 -04:00
|
|
|
public:
|
2020-04-13 12:38:06 -04:00
|
|
|
|
|
|
|
cBlaze();
|
2013-07-29 07:13:03 -04:00
|
|
|
|
2014-07-22 18:36:13 -04:00
|
|
|
CLASS_PROTODEF(cBlaze)
|
2016-02-05 16:45:45 -05:00
|
|
|
|
2020-03-26 13:54:40 -04:00
|
|
|
virtual void Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk) override;
|
2014-10-20 16:55:07 -04:00
|
|
|
virtual void GetDrops(cItems & a_Drops, cEntity * a_Killer = nullptr) override;
|
2015-11-08 07:44:17 -05:00
|
|
|
virtual bool Attack(std::chrono::milliseconds a_Dt) override;
|
2020-03-26 13:54:40 -04: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 07:13:03 -04:00
|
|
|
} ;
|