diff options
Diffstat (limited to 'src/Mobs/Old Mobs/Enderman.h')
-rw-r--r-- | src/Mobs/Old Mobs/Enderman.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/src/Mobs/Old Mobs/Enderman.h b/src/Mobs/Old Mobs/Enderman.h new file mode 100644 index 000000000..5e61f9ac0 --- /dev/null +++ b/src/Mobs/Old Mobs/Enderman.h @@ -0,0 +1,42 @@ + +#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; + +} ; + + + + |