5db6213f34
+ Pigs, Minecarts, Sheep, Skeletons, Slimes, Villagers, Wolves, and Horses have metadata + Base code on taming wolves, shearing sheep, and taming horses + Sheep and horses have different colours when spawned
32 lines
327 B
C++
32 lines
327 B
C++
|
|
#pragma once
|
|
|
|
#include "PassiveMonster.h"
|
|
|
|
|
|
|
|
|
|
|
|
class cVillager :
|
|
public cPassiveMonster
|
|
{
|
|
typedef cPassiveMonster super;
|
|
|
|
public:
|
|
cVillager(int Type);
|
|
|
|
CLASS_PROTODEF(cVillager);
|
|
|
|
virtual void DoTakeDamage(TakeDamageInfo & a_TDI) override;
|
|
int GetVilType(void) const { return m_Type; }
|
|
|
|
private:
|
|
|
|
int m_Type;
|
|
|
|
} ;
|
|
|
|
|
|
|
|
|