2013-07-29 07:13:03 -04:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "PassiveMonster.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class cVillager :
|
|
|
|
public cPassiveMonster
|
|
|
|
{
|
|
|
|
typedef cPassiveMonster super;
|
|
|
|
|
|
|
|
public:
|
2013-10-11 15:57:22 -04:00
|
|
|
|
|
|
|
enum eVillagerType
|
|
|
|
{
|
2013-10-13 07:47:55 -04:00
|
|
|
vtFarmer = 0,
|
|
|
|
vtLibrarian = 1,
|
|
|
|
vtPriest = 2,
|
|
|
|
vtBlacksmith = 3,
|
|
|
|
vtButcher = 4,
|
|
|
|
vtGeneric = 5,
|
|
|
|
vtMax
|
2013-10-11 15:57:22 -04:00
|
|
|
} ;
|
|
|
|
|
|
|
|
cVillager(eVillagerType VillagerType);
|
2013-07-29 07:13:03 -04:00
|
|
|
|
|
|
|
CLASS_PROTODEF(cVillager);
|
2013-10-08 14:20:49 -04:00
|
|
|
|
|
|
|
virtual void DoTakeDamage(TakeDamageInfo & a_TDI) override;
|
2013-10-11 15:57:22 -04:00
|
|
|
int GetVilType(void) const { return m_Type; }
|
2013-10-08 14:20:49 -04:00
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
int m_Type;
|
|
|
|
|
2013-07-29 07:13:03 -04:00
|
|
|
} ;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|