5 #include "../UI/WindowOwner.h"
19 cHorse(
int Type,
int Color,
int Style,
int TameTimes);
24 virtual void InStateIdle(std::chrono::milliseconds a_Dt,
cChunk & a_Chunk)
override;
26 virtual void Tick(std::chrono::milliseconds a_Dt,
cChunk & a_Chunk)
override;
#define CLASS_PROTODEF(classname)
bool IsEmpty(void) const
Returns true if the item represents an empty stack - either the type is invalid, or count is zero.
This class bridges a vector of cItem for safe access via Lua.
void Add(const cItem &a_Item)
bool IsTame(void) const override
bool IsEating(void) const
const cItem & GetHorseArmorItem() const
bool IsChested(void) const
int GetHorseArmour(void) const
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...
void SetHorseSaddle(cItem a_SaddleItem)
Set the horse's saddle to the given item.
bool IsSaddled(void) const
int GetHorseType(void) const
virtual void InStateIdle(std::chrono::milliseconds a_Dt, cChunk &a_Chunk) override
int GetHorseStyle(void) const
void PlayerOpenWindow(cPlayer &a_Player)
virtual void OnRemoveFromWorld(cWorld &a_World) override
Called when the entity is removed from a world.
bool IsMthOpen(void) const
int GetHorseColor(void) const
virtual void HandleSpeedFromAttachee(float a_Forward, float a_Sideways) override
virtual void Tick(std::chrono::milliseconds a_Dt, cChunk &a_Chunk) override
void SetHorseArmor(cItem a_ArmorItem)
Set the horse's armor slot to the given item.
cHorse(int Type, int Color, int Style, int TameTimes)
virtual void OnRightClicked(cPlayer &a_Player) override
Called when the specified player right-clicks this entity.
bool IsRearing(void) const
virtual void GetDrops(cItems &a_Drops, cEntity *a_Killer=nullptr) override
Returns the list of drops for this pawn when it is killed.
const cItem & GetHorseSaddle() const
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)
Window owner that is associated with an entity (chest minecart etc.)