2a9664d6ca
also refactored cWorld::m_WorldAge and cWorld::m_TimeOfDay
32 lines
473 B
C++
32 lines
473 B
C++
|
|
#pragma once
|
|
|
|
#include "PassiveMonster.h"
|
|
|
|
|
|
|
|
|
|
|
|
class cSquid :
|
|
public cPassiveMonster
|
|
{
|
|
typedef cPassiveMonster super;
|
|
|
|
public:
|
|
cSquid();
|
|
|
|
virtual void Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk) override;
|
|
|
|
CLASS_PROTODEF(cSquid)
|
|
|
|
virtual void GetDrops(cItems & a_Drops, cEntity * a_Killer = nullptr) override;
|
|
|
|
// Squids do not drown (or float)
|
|
virtual void HandleAir(void) override {}
|
|
virtual void SetSwimState(cChunk & a_Chunk) override {}
|
|
} ;
|
|
|
|
|
|
|
|
|