aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/Cow.h
blob: 242106315762543ae9f8d77207accdbeff101311 (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
33
#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();

protected:
	virtual void registerAttributes();
	virtual int getAmbientSound();
	virtual int getHurtSound();
	virtual int getDeathSound();
	virtual float getSoundVolume();
	virtual int getDeathLoot();
	virtual void playStepSound(int xt, int yt, int zt, int t);
	virtual void dropDeathLoot(bool wasKilledByPlayer, int playerBonusLevel);

public:
	virtual bool mobInteract(shared_ptr<Player> player);
	virtual shared_ptr<AgableMob> getBreedOffspring(shared_ptr<AgableMob> target);
};