aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/Cow.h
blob: e721f8302a6b1d2e3888098e9530ae774623174a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#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:
	virtual bool interact(std::shared_ptr<Player> player);
	virtual std::shared_ptr<AgableMob> getBreedOffspring(std::shared_ptr<AgableMob> target);
};