Cuberite
A lightweight, fast and extensible game server for Minecraft
Ghast.h
Go to the documentation of this file.
1 
2 #pragma once
3 
4 #include "AggressiveMonster.h"
5 
6 
7 
8 
9 
10 class cGhast :
11  public cAggressiveMonster
12 {
14 
15 public:
16  cGhast(void);
17 
19 
20  virtual void GetDrops(cItems & a_Drops, cEntity * a_Killer = nullptr) override;
21  virtual bool Attack(std::chrono::milliseconds a_Dt) override;
22 
23  bool IsCharging(void) const {return false; }
24 } ;
25 
26 
27 
28 
Definition: FastNBT.h:131
cGhast(void)
Definition: Ghast.cpp:11
virtual bool Attack(std::chrono::milliseconds a_Dt) override
Try to perform attack returns true if attack was deemed successful (hit player, fired projectile...
Definition: Ghast.cpp:35
virtual void GetDrops(cItems &a_Drops, cEntity *a_Killer=nullptr) override
Returns the list of drops for this pawn when it is killed.
Definition: Ghast.cpp:20
Definition: Ghast.h:10
bool IsCharging(void) const
Definition: Ghast.h:23
cAggressiveMonster super
Definition: Ghast.h:13
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