2012-12-21 06:04:08 -05:00
|
|
|
|
2012-06-14 09:06:06 -04:00
|
|
|
#pragma once
|
|
|
|
|
2012-09-23 16:53:08 -04:00
|
|
|
#include "PassiveMonster.h"
|
2012-06-14 09:06:06 -04:00
|
|
|
|
2012-12-21 06:04:08 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class cPig :
|
|
|
|
public cPassiveMonster
|
2012-06-14 09:06:06 -04:00
|
|
|
{
|
2012-12-21 06:04:08 -05:00
|
|
|
typedef cPassiveMonster super;
|
2016-02-05 16:45:45 -05:00
|
|
|
|
2012-06-14 09:06:06 -04:00
|
|
|
public:
|
2012-12-21 06:04:08 -05:00
|
|
|
cPig(void);
|
|
|
|
|
2014-07-22 18:36:13 -04:00
|
|
|
CLASS_PROTODEF(cPig)
|
2012-12-21 06:04:08 -05:00
|
|
|
|
2014-11-22 18:33:34 -05:00
|
|
|
// cEntity overrides
|
|
|
|
virtual bool DoTakeDamage(TakeDamageInfo & a_TDI) override;
|
2016-02-05 16:45:45 -05:00
|
|
|
|
2014-10-20 16:55:07 -04:00
|
|
|
virtual void GetDrops(cItems & a_Drops, cEntity * a_Killer = nullptr) override;
|
2013-10-08 14:20:49 -04:00
|
|
|
virtual void OnRightClicked(cPlayer & a_Player) override;
|
2015-01-11 16:12:26 -05:00
|
|
|
virtual void Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk) override;
|
2014-01-29 13:15:26 -05:00
|
|
|
|
2015-11-14 10:42:26 -05:00
|
|
|
virtual void GetFollowedItems(cItems & a_Items) override
|
|
|
|
{
|
|
|
|
a_Items.Add(E_ITEM_CARROT);
|
|
|
|
}
|
2014-01-29 12:08:33 -05:00
|
|
|
|
2013-10-08 14:20:49 -04:00
|
|
|
bool IsSaddled(void) const { return m_bIsSaddled; }
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
bool m_bIsSaddled;
|
|
|
|
|
2012-12-21 06:04:08 -05:00
|
|
|
} ;
|
|
|
|
|
|
|
|
|
2012-06-14 09:06:06 -04:00
|
|
|
|
|
|
|
|