2013-09-18 17:17:43 -04:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2013-10-08 17:21:55 -04:00
|
|
|
#include "PassiveMonster.h"
|
2013-09-18 17:17:43 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class cHorse :
|
2013-09-19 16:20:21 -04:00
|
|
|
public cPassiveMonster
|
2013-09-18 17:17:43 -04:00
|
|
|
{
|
2013-09-19 16:20:21 -04:00
|
|
|
typedef cPassiveMonster super;
|
2013-09-18 17:17:43 -04:00
|
|
|
|
|
|
|
public:
|
2013-10-08 14:20:49 -04:00
|
|
|
cHorse(int Type, int Color, int Style, int TameTimes);
|
2013-09-18 17:17:43 -04:00
|
|
|
|
2014-07-22 18:36:13 -04:00
|
|
|
CLASS_PROTODEF(cHorse)
|
2013-09-18 17:17:43 -04:00
|
|
|
|
|
|
|
virtual void GetDrops(cItems & a_Drops, cEntity * a_Killer = NULL) override;
|
2013-10-08 14:20:49 -04:00
|
|
|
virtual void Tick(float a_Dt, cChunk & a_Chunk) override;
|
|
|
|
virtual void OnRightClicked(cPlayer & a_Player) override;
|
2013-10-09 16:02:59 -04:00
|
|
|
|
2013-10-10 20:00:16 -04:00
|
|
|
bool IsSaddled (void) const {return m_bIsSaddled; }
|
|
|
|
bool IsChested (void) const {return m_bHasChest; }
|
|
|
|
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 GetHorseType (void) const {return m_Type; }
|
|
|
|
int GetHorseColor (void) const {return m_Color; }
|
|
|
|
int GetHorseStyle (void) const {return m_Style; }
|
|
|
|
int GetHorseArmour (void) const {return m_Armour;}
|
2013-10-08 14:20:49 -04:00
|
|
|
|
|
|
|
private:
|
|
|
|
|
2013-10-09 16:02:59 -04:00
|
|
|
bool m_bHasChest, m_bIsEating, m_bIsRearing, m_bIsMouthOpen, m_bIsTame, m_bIsSaddled;
|
2013-10-11 16:33:56 -04:00
|
|
|
int m_Type, m_Color, m_Style, m_Armour, m_TimesToTame, m_TameAttemptTimes, m_RearTickCount;
|
2013-10-08 14:20:49 -04:00
|
|
|
|
2013-09-18 17:17:43 -04:00
|
|
|
} ;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|