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

            
                                     
 





                                        
 

                                                
       

                        
                                 
 



                                                                                        




                                                                     


                                                                                                         





                               


   
 
 

#pragma once

#include "PassiveAggressiveMonster.h"





class cEnderman :
	public cPassiveAggressiveMonster
{
	typedef cPassiveAggressiveMonster super;
	
public:
	cEnderman(void);

	CLASS_PROTODEF(cEnderman)

	virtual void GetDrops(cItems & a_Drops, cEntity * a_Killer = NULL) /*override*/;
	virtual void CheckEventSeePlayer(void) /*override*/;
	virtual void CheckEventLostPlayer(void) /*override*/;
	virtual void EventLosePlayer(void) /*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);

private:

	bool m_bIsScreaming;
	BLOCKTYPE CarriedBlock;
	NIBBLETYPE CarriedMeta;

} ;