1
0
cuberite-2a/src/Mobs/Pig.h

40 lines
656 B
C
Raw Normal View History

#pragma once
#include "PassiveMonster.h"
class cPig :
public cPassiveMonster
{
typedef cPassiveMonster super;
public:
cPig(void);
CLASS_PROTODEF(cPig)
2014-11-22 18:33:34 -05:00
// cEntity overrides
virtual bool DoTakeDamage(TakeDamageInfo & a_TDI) override;
2014-10-20 16:55:07 -04:00
virtual void GetDrops(cItems & a_Drops, cEntity * a_Killer = nullptr) override;
virtual void OnRightClicked(cPlayer & a_Player) override;
virtual void Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk) override;
virtual const cItem GetFollowedItem(void) const override { return cItem(E_ITEM_CARROT); }
bool IsSaddled(void) const { return m_bIsSaddled; }
private:
bool m_bIsSaddled;
} ;