diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2013-10-08 20:20:49 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2013-10-08 20:20:49 +0200 |
commit | 5db6213f34318031ece7e2a6765f69564b671891 (patch) | |
tree | 074213cf13247c4e6370528eaa000bbd4b3a625d /source/Mobs/Horse.h | |
parent | Merge pull request #2 from tigerw/bugfixes (diff) | |
download | cuberite-5db6213f34318031ece7e2a6765f69564b671891.tar cuberite-5db6213f34318031ece7e2a6765f69564b671891.tar.gz cuberite-5db6213f34318031ece7e2a6765f69564b671891.tar.bz2 cuberite-5db6213f34318031ece7e2a6765f69564b671891.tar.lz cuberite-5db6213f34318031ece7e2a6765f69564b671891.tar.xz cuberite-5db6213f34318031ece7e2a6765f69564b671891.tar.zst cuberite-5db6213f34318031ece7e2a6765f69564b671891.zip |
Diffstat (limited to '')
-rw-r--r-- | source/Mobs/Horse.h | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/source/Mobs/Horse.h b/source/Mobs/Horse.h index ea6e441bd..d950ff1bf 100644 --- a/source/Mobs/Horse.h +++ b/source/Mobs/Horse.h @@ -13,11 +13,28 @@ class cHorse : typedef cPassiveMonster super; public: - cHorse(void); + cHorse(int Type, int Color, int Style, int TameTimes); CLASS_PROTODEF(cHorse); virtual void GetDrops(cItems & a_Drops, cEntity * a_Killer = NULL) override; + virtual void Tick(float a_Dt, cChunk & a_Chunk) override; + virtual void OnRightClicked(cPlayer & a_Player) override; + bool IsChested (void) const {return m_bIsChested; } + bool IsEating (void) const {return m_bIsEating; } + bool IsRearing (void) const {return m_bIsRearing; } + bool IsMthOpen (void) const {return m_bIsMouthOpen; } + bool IsTame (void) const {return m_bIsTame; } + int GetHType (void) const {return m_Type; } + int GetHColor (void) const {return m_Color; } + int GetHStyle (void) const {return m_Style; } + int GetHArmour (void) const {return m_Armour;} + +private: + + bool m_bIsChested, m_bIsEating, m_bIsRearing, m_bIsMouthOpen, m_bIsTame; + int m_Type, m_Color, m_Style, m_Armour, m_TimesToTame, m_TameAttemptTimes; + } ; |