diff options
Diffstat (limited to 'src/Mobs/Old Mobs/Pig.h')
-rw-r--r-- | src/Mobs/Old Mobs/Pig.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/Mobs/Old Mobs/Pig.h b/src/Mobs/Old Mobs/Pig.h new file mode 100644 index 000000000..abd2d2299 --- /dev/null +++ b/src/Mobs/Old Mobs/Pig.h @@ -0,0 +1,36 @@ + +#pragma once + +#include "PassiveMonster.h" + + + + + +class cPig : + public cPassiveMonster +{ + typedef cPassiveMonster super; + +public: + cPig(void); + + CLASS_PROTODEF(cPig) + + virtual void GetDrops(cItems & a_Drops, cEntity * a_Killer = NULL) /*override*/; + virtual void OnRightClicked(cPlayer & a_Player) /*override*/; + virtual void Tick(float 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; + +} ; + + + + |