forked from Kolyah35/minecraft-pe-0.6.1
the whole game
This commit is contained in:
49
src/world/entity/animal/Chicken.h
Executable file
49
src/world/entity/animal/Chicken.h
Executable file
@@ -0,0 +1,49 @@
|
||||
#ifndef NET_MINECRAFT_WORLD_ENTITY_ANIMAL__Chicken_H__
|
||||
#define NET_MINECRAFT_WORLD_ENTITY_ANIMAL__Chicken_H__
|
||||
|
||||
//package net.minecraft.world.entity.animal;
|
||||
|
||||
#include "Animal.h"
|
||||
|
||||
class CompoundTag;
|
||||
class Level;
|
||||
|
||||
class Chicken: public Animal
|
||||
{
|
||||
typedef Animal super;
|
||||
public:
|
||||
Chicken(Level* level);
|
||||
|
||||
int getEntityTypeId() const;
|
||||
|
||||
/*@Override*/
|
||||
int getMaxHealth();
|
||||
|
||||
void aiStep();
|
||||
|
||||
void addAdditonalSaveData(CompoundTag* tag);
|
||||
void readAdditionalSaveData(CompoundTag* tag);
|
||||
protected:
|
||||
void causeFallDamage(float distance);
|
||||
|
||||
const char* getAmbientSound();
|
||||
std::string getHurtSound();
|
||||
std::string getDeathSound();
|
||||
|
||||
//int getDeathLoot();
|
||||
|
||||
//@Override
|
||||
void dropDeathLoot(/*bool wasKilledByPlayer, int playerBonusLevel*/);
|
||||
|
||||
//@Override
|
||||
Animal* getBreedOffspring(Animal* target);
|
||||
public:
|
||||
bool sheared;
|
||||
float flap;
|
||||
float flapSpeed;
|
||||
float oFlapSpeed, oFlap;
|
||||
float flapping;
|
||||
int eggTime;
|
||||
};
|
||||
|
||||
#endif /*NET_MINECRAFT_WORLD_ENTITY_ANIMAL__Chicken_H__*/
|
||||
Reference in New Issue
Block a user