2011-10-25 19:46:01 -04:00
|
|
|
#include "cSheep.h"
|
|
|
|
|
2011-12-21 15:42:34 -05:00
|
|
|
//Todo: Implement color
|
2011-10-25 19:46:01 -04:00
|
|
|
|
|
|
|
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 )
|
|
|
|
{
|
2011-12-21 15:42:34 -05:00
|
|
|
//Todo: Check wheather it is sheared
|
|
|
|
//Todo: Check color
|
|
|
|
|
|
|
|
cMonster::DropItem(E_ITEM_WHITE_CLOTH, 1);
|
|
|
|
|
2011-10-25 19:46:01 -04:00
|
|
|
cMonster::KilledBy( a_Killer );
|
2011-12-25 17:47:12 -05:00
|
|
|
}
|