6 #include "../Entities/Player.h"
7 #include "../BoundingBox.h"
8 #include "../Items/ItemSpawnEgg.h"
14 Super(a_ConfigName, a_MobType, a_SoundHurt, a_SoundDeath, a_SoundAmbient, a_Width, a_Height)
eMonsterType
Identifies individual monster type.
bool IsTicking(void) const
Returns true if the entity is valid and ticking.
virtual void CheckEventLostPlayer(std::chrono::milliseconds a_Dt)
void LoveTick(void)
Does the whole love and breeding processing.
virtual bool DoTakeDamage(TakeDamageInfo &a_TDI) override
Makes this entity take damage specified in the a_TDI.
virtual void OnRightClicked(cPlayer &a_Player) override
Called when the specified player right-clicks this entity.
virtual void Tick(std::chrono::milliseconds a_Dt, cChunk &a_Chunk) override
enum cMonster::MState m_EMState
void RightClickFeed(cPlayer &a_Player)
Right click call to process feeding.
enum cMonster::MPersonality m_EMPersonality
cPassiveMonster(const AString &a_ConfigName, eMonsterType a_MobType, const AString &a_SoundHurt, const AString &a_SoundDeath, const AString &a_SoundAmbient, float a_Width, float a_Height)
virtual void Tick(std::chrono::milliseconds a_Dt, cChunk &a_Chunk) override
virtual void OnRightClicked(cPlayer &a_Player) override
Called when the specified player right-clicks this entity.
virtual bool DoTakeDamage(TakeDamageInfo &a_TDI) override
When hit by someone, run away.