Cuberite
A lightweight, fast and extensible game server for Minecraft
Squid.h
Go to the documentation of this file.
1 
2 #pragma once
3 
4 #include "PassiveMonster.h"
5 
6 
7 
8 
9 
10 class cSquid:
11  public cPassiveMonster
12 {
14 
15 public:
16 
17  cSquid();
18 
19  virtual void Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk) override;
20 
22 
23  virtual void GetDrops(cItems & a_Drops, cEntity * a_Killer = nullptr) override;
24 
25  // Squids do not drown (or float)
26  virtual void HandleAir(void) override {}
27 } ;
28 
29 
30 
31 
#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
cPassiveMonster(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)
Definition: Squid.h:12
cSquid()
Definition: Squid.cpp:11
virtual void HandleAir(void) override
Called in each tick to handle air-related processing i.e.
Definition: Squid.h:26
virtual void GetDrops(cItems &a_Drops, cEntity *a_Killer=nullptr) override
Returns the list of drops for this pawn when it is killed.
Definition: Squid.cpp:20
virtual void Tick(std::chrono::milliseconds a_Dt, cChunk &a_Chunk) override
Definition: Squid.cpp:35