26 virtual void Tick(std::chrono::milliseconds a_Dt,
cChunk & a_Chunk)
override;
28 virtual bool Attack(std::chrono::milliseconds a_Dt)
override;
60 virtual void InStateIdle(std::chrono::milliseconds a_Dt,
cChunk & a_Chunk)
override;
#define CLASS_PROTODEF(classname)
This class bridges a vector of cItem for safe access via Lua.
void Add(const cItem &a_Item)
cPassiveAggressiveMonster(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 bool DoTakeDamage(TakeDamageInfo &a_TDI) override
Makes this entity take damage specified in the a_TDI.
void SetIsTame(bool a_IsTame)
void SetIsSitting(bool a_IsSitting)
cUUID GetOwnerUUID(void) const
AString GetOwnerName(void) const
void SetOwner(const AString &a_NewOwnerName, const cUUID &a_NewOwnerUUID)
void SetCollarColor(int a_CollarColor)
virtual void TickFollowPlayer()
int m_NotificationCooldown
bool IsSitting(void) const override
virtual void InStateIdle(std::chrono::milliseconds a_Dt, cChunk &a_Chunk) override
virtual void InheritFromParents(cMonster *a_Parent1, cMonster *a_Parent2) override
Called after the baby is born, allows the baby to inherit the parents' properties (color,...
void NotifyAlliesOfFight(cPawn *a_Opponent)
virtual void GetBreedingItems(cItems &a_Items) override
Returns the items that make the animal breed - this is usually the same as the ones that make the ani...
virtual bool Attack(std::chrono::milliseconds a_Dt) override
Try to perform attack returns true if attack was deemed successful (hit player, fired projectile,...
void ReceiveNearbyFightInfo(const cUUID &a_PlayerUUID, cPawn *a_Opponent, bool a_IsPlayerInvolved)
Notfies the wolf of a nearby fight.
void SetIsBegging(bool a_IsBegging)
virtual void Tick(std::chrono::milliseconds a_Dt, cChunk &a_Chunk) override
bool IsTame(void) const override
bool IsBegging(void) const
void SetIsAngry(bool a_IsAngry)
virtual void OnRightClicked(cPlayer &a_Player) override
Called when the specified player right-clicks this entity.
int GetCollarColor(void) const