2a9664d6ca
also refactored cWorld::m_WorldAge and cWorld::m_TimeOfDay
44 lines
916 B
C++
44 lines
916 B
C++
|
|
#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 = nullptr) override;
|
|
virtual void CheckEventSeePlayer(void) override;
|
|
virtual void CheckEventLostPlayer(void) override;
|
|
virtual void EventLosePlayer(void) 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);
|
|
|
|
private:
|
|
|
|
bool m_bIsScreaming;
|
|
BLOCKTYPE CarriedBlock;
|
|
NIBBLETYPE CarriedMeta;
|
|
|
|
} ;
|
|
|
|
|
|
|
|
|