Cuberite
A lightweight, fast and extensible game server for Minecraft
ZombieVillager.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "AggressiveMonster.h"
4 #include "Villager.h"
5 
6 
7 
8 
9 
11  public cAggressiveMonster
12 {
14 
15 public:
16 
18 
20 
21  virtual void GetDrops (cItems & a_Drops, cEntity * a_Killer = nullptr) override;
22  virtual void Tick (std::chrono::milliseconds a_Dt, cChunk & a_Chunk) override;
23  virtual void OnRightClicked (cPlayer & a_Player) override;
24  virtual bool IsUndead (void) override { return true; }
25 
26  int ConversionTime (void) const { return m_ConversionTime; }
28 
29 private:
30 
33 
34 } ;
#define CLASS_PROTODEF(classname)
Definition: Entity.h:13
Definition: Chunk.h:36
Definition: Entity.h:76
Definition: Player.h:29
This class bridges a vector of cItem for safe access via Lua.
Definition: Item.h:215
cAggressiveMonster(const AString &a_ConfigName, eMonsterType a_MobType, const AString &a_SoundHurt, const AString &a_SoundDeath, const AString &a_SoundAmbient, float a_Width, float a_Height)
eVillagerType
Definition: Villager.h:19
cZombieVillager(cVillager::eVillagerType a_Profession)
virtual void Tick(std::chrono::milliseconds a_Dt, cChunk &a_Chunk) override
cVillager::eVillagerType GetProfession(void) const
virtual void OnRightClicked(cPlayer &a_Player) override
Called when the specified player right-clicks this entity.
virtual void GetDrops(cItems &a_Drops, cEntity *a_Killer=nullptr) override
Returns the list of drops for this pawn when it is killed.
virtual bool IsUndead(void) override
Returns whether this mob is undead (skeleton, zombie, etc.)
int ConversionTime(void) const
cVillager::eVillagerType m_Profession