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 
16  cCaveSpider();
17 
19 
20  virtual void Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk) override;
21  virtual bool Attack(std::chrono::milliseconds a_Dt) override;
22  virtual void GetDrops(cItems & a_Drops, cEntity * a_Killer = nullptr) override;
23 } ;
24 
25 
26 
27 
#define CLASS_PROTODEF(classname)
Definition: Entity.h:13
Definition: Chunk.h:36
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 void Tick(std::chrono::milliseconds a_Dt, cChunk &a_Chunk) override
Definition: CaveSpider.cpp:19
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
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