1
0
cuberite-2a/src/Mobs/Enderman.h

40 lines
931 B
C
Raw Normal View History

#pragma once
#include "PassiveAggressiveMonster.h"
class cEnderman :
public cPassiveAggressiveMonster
{
typedef cPassiveAggressiveMonster super;
public:
cEnderman(void);
CLASS_PROTODEF(cEnderman)
2014-10-20 16:55:07 -04:00
virtual void GetDrops(cItems & a_Drops, cEntity * a_Killer = nullptr) override;
virtual void CheckEventSeePlayer(cChunk & a_Chunk) override;
2014-08-01 17:05:40 -04:00
virtual void CheckEventLostPlayer(void) override;
2014-06-04 04:19:55 -04:00
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 m_CarriedBlock; }
NIBBLETYPE GetCarriedMeta(void) const {return m_CarriedMeta; }
2014-08-01 17:05:40 -04:00
/** Returns if the current sky light level is sufficient for the enderman to become aggravated */
bool CheckLight(void);
private:
bool m_bIsScreaming;
BLOCKTYPE m_CarriedBlock;
NIBBLETYPE m_CarriedMeta;
} ;