blob: a1a91aba0d0b4131a15ab4531ce642951101e006 (
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(shared_ptr<Player> player);
virtual shared_ptr<AgableMob> getBreedOffspring(shared_ptr<AgableMob> target);
};
|