summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Endermite.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Mobs/Endermite.h')
-rw-r--r--src/Mobs/Endermite.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/Mobs/Endermite.h b/src/Mobs/Endermite.h
new file mode 100644
index 000000000..9e0102a07
--- /dev/null
+++ b/src/Mobs/Endermite.h
@@ -0,0 +1,24 @@
+
+#pragma once
+
+#include "AggressiveMonster.h"
+
+
+
+class cEndermite:
+ public cAggressiveMonster
+{
+ using Super = cAggressiveMonster;
+
+ // Endermite should despawn in two minutes
+ std::chrono::milliseconds m_Timer;
+ std::chrono::milliseconds m_Lifetime;
+
+public:
+
+ cEndermite();
+
+ CLASS_PROTODEF(cEndermite)
+
+ void Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk) override;
+} ;