summaryrefslogtreecommitdiffstats
path: root/source/cSheep.cpp
blob: 5f4dd637977f3cc9a45177969bdf580c08d09e4d (plain) (blame)
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

#include "Globals.h"  // NOTE: MSVC stupidness requires this to be the same across all modules

#include "cSheep.h"

//Todo: Implement color

cSheep::cSheep()
{
	m_MobType = 91;
	GetMonsterConfig("Sheep");
}

cSheep::~cSheep()
{
}

bool cSheep::IsA( const char* a_EntityType )
{
	if( strcmp( a_EntityType, "cSheep" ) == 0 ) return true;
	return cMonster::IsA( a_EntityType );
}

void cSheep::KilledBy( cEntity* a_Killer )
{
	//Todo: Check wheather it is sheared
	//Todo: Check color

	cMonster::DropItem(E_ITEM_WHITE_CLOTH, 1);

	cMonster::KilledBy( a_Killer );
}