summaryrefslogblamecommitdiffstats
path: root/src/Mobs/Blaze.h
blob: 9ebc1ffcfa6f6a5c0545fbaeecdc7cfc175979ce (plain) (tree)
1
2
3
4
5
6
7
8
9








                              
             

                                 
                                         
 
       

                 
 
                              
 

        
                                                                     


                                                                                       
 





                                                                                 
   

#pragma once

#include "AggressiveMonster.h"





class cBlaze:
	public cAggressiveMonster
{
	using Super = cAggressiveMonster;

public:

	cBlaze();

	CLASS_PROTODEF(cBlaze)

private:

	virtual bool Attack(std::chrono::milliseconds a_Dt) override;
	virtual void GetDrops(cItems & a_Drops, cEntity * a_Killer = nullptr) override;
	virtual bool IsNetherNative(void) override { return true; }
	virtual void Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk) override;

	/** 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;
} ;