Cuberite
A lightweight, fast and extensible game server for Minecraft
CaveSpider.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "AggressiveMonster.h"
4 
5 
6 
7 
8 
9 class cCaveSpider :
10  public cAggressiveMonster
11 {
13 
14 public:
15  cCaveSpider(void);
16 
18 
19  virtual void Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk) override;
20  virtual bool Attack(std::chrono::milliseconds a_Dt) override;
21  virtual void GetDrops(cItems & a_Drops, cEntity * a_Killer = nullptr) override;
22 } ;
23 
24 
25 
26 
Definition: FastNBT.h:131
Definition: Chunk.h:49
cCaveSpider(void)
Definition: CaveSpider.cpp:10
virtual void Tick(std::chrono::milliseconds a_Dt, cChunk &a_Chunk) override
Definition: CaveSpider.cpp:19
Definition: Entity.h:73
virtual void GetDrops(cItems &a_Drops, cEntity *a_Killer=nullptr) override
Returns the list of drops for this pawn when it is killed.
Definition: CaveSpider.cpp:54
cAggressiveMonster super
Definition: CaveSpider.h:12
#define CLASS_PROTODEF(classname)
Definition: Entity.h: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: CaveSpider.cpp:35
This class bridges a vector of cItem for safe access via Lua.
Definition: Item.h:234