d8d2f35e9d
* Changed IsA() to *long if statement* - Removed deprecated values in Entity.h - to blazes with the plugins! * Renamed villager type enumerations to be LESS SHOUTY and more vt-y + Use vtMax for World.cpp testificate spawning
44 lines
504 B
C++
44 lines
504 B
C++
|
|
#pragma once
|
|
|
|
#include "PassiveMonster.h"
|
|
|
|
|
|
|
|
|
|
|
|
class cVillager :
|
|
public cPassiveMonster
|
|
{
|
|
typedef cPassiveMonster super;
|
|
|
|
public:
|
|
|
|
enum eVillagerType
|
|
{
|
|
vtFarmer = 0,
|
|
vtLibrarian = 1,
|
|
vtPriest = 2,
|
|
vtBlacksmith = 3,
|
|
vtButcher = 4,
|
|
vtGeneric = 5,
|
|
vtMax
|
|
} ;
|
|
|
|
cVillager(eVillagerType VillagerType);
|
|
|
|
CLASS_PROTODEF(cVillager);
|
|
|
|
virtual void DoTakeDamage(TakeDamageInfo & a_TDI) override;
|
|
int GetVilType(void) const { return m_Type; }
|
|
|
|
private:
|
|
|
|
int m_Type;
|
|
|
|
} ;
|
|
|
|
|
|
|
|
|