Cuberite
A lightweight, fast and extensible game server for Minecraft
ZombiePigman.h
Go to the documentation of this file.
1 #pragma once
2 
4 
5 
6 
7 
8 
9 class cZombiePigman :
11 {
13 
14 public:
15  cZombiePigman(void);
16 
18 
19  virtual void GetDrops(cItems & a_Drops, cEntity * a_Killer = nullptr) override;
20  virtual void KilledBy(TakeDamageInfo & a_TDI) override;
21  virtual void SpawnOn(cClientHandle & a_ClientHandle) override;
22 
23  virtual bool IsUndead(void) override { return true; }
24 } ;
25 
26 
27 
28 
cPassiveAggressiveMonster super
Definition: ZombiePigman.h:12
virtual void KilledBy(TakeDamageInfo &a_TDI) override
Called when the health drops below zero.
virtual void SpawnOn(cClientHandle &a_ClientHandle) override
Descendants override this function to send a command to the specified client to spawn the entity on t...
virtual bool IsUndead(void) override
Returns whether this mob is undead (skeleton, zombie, etc.)
Definition: ZombiePigman.h:23
Definition: Entity.h:73
#define CLASS_PROTODEF(classname)
Definition: Entity.h:11
This class bridges a vector of cItem for safe access via Lua.
Definition: Item.h:234
virtual void GetDrops(cItems &a_Drops, cEntity *a_Killer=nullptr) override
Returns the list of drops for this pawn when it is killed.