Cuberite
A lightweight, fast and extensible game server for Minecraft
EnderDragon.h
Go to the documentation of this file.
1 
2 #pragma once
3 
4 #include "AggressiveMonster.h"
5 
6 
7 
8 
9 
11  public cAggressiveMonster
12 {
14 
15 public:
16 
17  cEnderDragon();
18 
20 
21  virtual bool DoTakeDamage(TakeDamageInfo & a_TDI) override;
22  virtual void GetDrops(cItems & a_Drops, cEntity * a_Killer = nullptr) override;
23  virtual void SpawnOn(cClientHandle & a_Client) override;
24 } ;
#define CLASS_PROTODEF(classname)
Definition: Entity.h:13
Definition: Entity.h:76
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)
virtual bool DoTakeDamage(TakeDamageInfo &a_TDI) override
Makes this entity take damage specified in the a_TDI.
Definition: EnderDragon.cpp:21
virtual void SpawnOn(cClientHandle &a_Client) override
Descendants override this function to send a command to the specified client to spawn the entity on t...
Definition: EnderDragon.cpp:45
virtual void GetDrops(cItems &a_Drops, cEntity *a_Killer=nullptr) override
Returns the list of drops for this pawn when it is killed.
Definition: EnderDragon.cpp:36