Cuberite
A lightweight, fast and extensible game server for Minecraft
Endermite.h
Go to the documentation of this file.
1 
2 #pragma once
3 
4 #include "AggressiveMonster.h"
5 
6 
7 
8 class cEndermite:
9  public cAggressiveMonster
10 {
12 
13  // Endermite should despawn in two minutes
14  std::chrono::milliseconds m_Timer;
15  std::chrono::milliseconds m_Lifetime;
16 
17 public:
18 
19  cEndermite();
20 
22 
23  void Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk) override;
24 } ;
#define CLASS_PROTODEF(classname)
Definition: Entity.h:13
Definition: Chunk.h:36
Definition: Entity.h:76
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)
void Tick(std::chrono::milliseconds a_Dt, cChunk &a_Chunk) override
Definition: Endermite.cpp:26
std::chrono::milliseconds m_Timer
Definition: Endermite.h:14
std::chrono::milliseconds m_Lifetime
Definition: Endermite.h:15