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  cSquid();
17 
18  virtual void Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk) override;
19 
21 
22  virtual void GetDrops(cItems & a_Drops, cEntity * a_Killer = nullptr) override;
23 
24  // Squids do not drown (or float)
25  virtual void HandleAir(void) override {}
26 } ;
27 
28 
29 
30 
cSquid()
Definition: Squid.cpp:11
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
Definition: Chunk.h:49
Definition: Squid.h:10
virtual void Tick(std::chrono::milliseconds a_Dt, cChunk &a_Chunk) override
Definition: Squid.cpp:35
virtual void HandleAir(void) override
Called in each tick to handle air-related processing i.e.
Definition: Squid.h:25
Definition: Entity.h:73
cPassiveMonster super
Definition: Squid.h:13
#define CLASS_PROTODEF(classname)
Definition: Entity.h:11
This class bridges a vector of cItem for safe access via Lua.
Definition: Item.h:234