2026-03-01 12:16:08 +08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
|
|
#include "Animal.h"
|
|
|
|
|
|
|
|
|
|
class Player;
|
|
|
|
|
class Level;
|
|
|
|
|
|
|
|
|
|
class Cow : public Animal
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
eINSTANCEOF GetType() { return eTYPE_COW; }
|
|
|
|
|
static Entity *create(Level *level) { return new Cow(level); }
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
Cow(Level *level);
|
|
|
|
|
virtual bool useNewAi();
|
|
|
|
|
virtual int getMaxHealth();
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
virtual int getAmbientSound();
|
|
|
|
|
virtual int getHurtSound();
|
|
|
|
|
virtual int getDeathSound();
|
|
|
|
|
virtual float getSoundVolume();
|
|
|
|
|
virtual int getDeathLoot();
|
|
|
|
|
virtual void dropDeathLoot(bool wasKilledByPlayer, int playerBonusLevel);
|
|
|
|
|
|
|
|
|
|
public:
|
2026-03-02 15:58:20 +07:00
|
|
|
virtual bool interact(std::shared_ptr<Player> player);
|
|
|
|
|
virtual std::shared_ptr<AgableMob> getBreedOffspring(std::shared_ptr<AgableMob> target);
|
2026-03-01 12:16:08 +08:00
|
|
|
};
|