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




                 
                       
 
                               
 
       
                        
 
                                 
 

                                                                                       
 


                                                                     
 



                                                                                                         
 

        


                               
 


   
 
 
#pragma once
#include "Monster.h"





class cEnderman :
	public cMonster
{
	typedef cMonster super;

public:
	cEnderman(void);

	CLASS_PROTODEF(cEnderman)

	virtual void GetDrops(cItems & a_Drops, cEntity * a_Killer = nullptr) override;
	virtual void Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk) override;

	bool IsScreaming(void) const {return m_bIsScreaming; }
	BLOCKTYPE GetCarriedBlock(void) const {return CarriedBlock; }
	NIBBLETYPE GetCarriedMeta(void) const {return CarriedMeta; }

	/** Returns if the current sky light level is sufficient for the enderman to become aggravated */
	bool CheckLight(void);
	/** Returns if the enderman gets hit by the rain */
	bool CheckRain(void);

private:

	bool m_bIsScreaming;
	BLOCKTYPE CarriedBlock;
	NIBBLETYPE CarriedMeta;

} ;