the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at master 47 lines 1.0 kB view raw
1#pragma once 2using namespace std; 3 4#include "Animal.h" 5 6class Level; 7class CompoundTag; 8 9class Chicken : public Animal 10{ 11public: 12 eINSTANCEOF GetType() { return eTYPE_CHICKEN; } 13 static Entity *create(Level *level) { return new Chicken(level); } 14 bool sheared; 15 float flap; 16 float flapSpeed; 17 float oFlapSpeed, oFlap; 18 float flapping; 19 int eggTime; 20 21private: 22 void _init(); 23 24public: 25 Chicken(Level *level); 26 virtual bool useNewAi(); 27 28protected: 29 void registerAttributes(); 30 31public: 32 virtual void aiStep(); 33 34protected: 35 virtual void causeFallDamage(float distance); 36 virtual int getAmbientSound(); 37 virtual int getHurtSound(); 38 virtual int getDeathSound(); 39 virtual void playStepSound(int xt, int yt, int zt, int t); 40 virtual int getDeathLoot(); 41 virtual void dropDeathLoot(bool wasKilledByPlayer, int playerBonusLevel); 42 43public: 44 virtual shared_ptr<AgableMob> getBreedOffspring(shared_ptr<AgableMob> target); 45 virtual bool isFood(shared_ptr<ItemInstance> itemInstance); 46 47};