summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Guardian.h
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-12-21 12:57:01 +0100
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-12-21 12:57:01 +0100
commit9755c5ba699493b3aa18ad4927f5a6a87e991e3b (patch)
treecc9a83ff0b5c87e4edd31f0785b14c902d577768 /src/Mobs/Guardian.h
parentFix repeater unpowering (diff)
parentMerge pull request #1680 from Masy98/entities (diff)
downloadcuberite-9755c5ba699493b3aa18ad4927f5a6a87e991e3b.tar
cuberite-9755c5ba699493b3aa18ad4927f5a6a87e991e3b.tar.gz
cuberite-9755c5ba699493b3aa18ad4927f5a6a87e991e3b.tar.bz2
cuberite-9755c5ba699493b3aa18ad4927f5a6a87e991e3b.tar.lz
cuberite-9755c5ba699493b3aa18ad4927f5a6a87e991e3b.tar.xz
cuberite-9755c5ba699493b3aa18ad4927f5a6a87e991e3b.tar.zst
cuberite-9755c5ba699493b3aa18ad4927f5a6a87e991e3b.zip
Diffstat (limited to '')
-rw-r--r--src/Mobs/Guardian.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/Mobs/Guardian.h b/src/Mobs/Guardian.h
new file mode 100644
index 000000000..50c034036
--- /dev/null
+++ b/src/Mobs/Guardian.h
@@ -0,0 +1,31 @@
+
+#pragma once
+
+#include "AggressiveMonster.h"
+
+
+
+
+
+class cGuardian :
+ public cAggressiveMonster
+{
+ typedef cAggressiveMonster super;
+
+public:
+ cGuardian();
+
+ virtual void Tick(float a_Dt, cChunk & a_Chunk) override;
+
+ CLASS_PROTODEF(cGuardian)
+
+ virtual void GetDrops(cItems & a_Drops, cEntity * a_Killer = nullptr) override;
+
+ // Guardians do not drown (or float)
+ virtual void HandleAir(void) override {}
+ virtual void SetSwimState(cChunk & a_Chunk) override {}
+} ;
+
+
+
+