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

43 lines
657 B
C
Raw Normal View History

#pragma once
#include "PassiveMonster.h"
class cPig :
public cPassiveMonster
{
typedef cPassiveMonster super;
2016-02-05 16:45:45 -05:00
public:
cPig(void);
CLASS_PROTODEF(cPig)
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;
virtual void OnRightClicked(cPlayer & a_Player) override;
virtual void Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk) override;
virtual void GetFollowedItems(cItems & a_Items) override
{
a_Items.Add(E_ITEM_CARROT);
}
bool IsSaddled(void) const { return m_bIsSaddled; }
private:
bool m_bIsSaddled;
} ;