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