summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Guardian.h
diff options
context:
space:
mode:
authorMasy98 <masy@antheruscraft.de>2014-12-18 19:30:32 +0100
committerMasy98 <masy@antheruscraft.de>2014-12-18 19:30:32 +0100
commitc836b52dd1b8d6a2999721f235e6c2b6079b266c (patch)
treeae04bd279e3bddb94119ce0b9f9aed9344f8f140 /src/Mobs/Guardian.h
parentClang needs the libstdc++ that comes with gcc-4.8 (diff)
downloadcuberite-c836b52dd1b8d6a2999721f235e6c2b6079b266c.tar
cuberite-c836b52dd1b8d6a2999721f235e6c2b6079b266c.tar.gz
cuberite-c836b52dd1b8d6a2999721f235e6c2b6079b266c.tar.bz2
cuberite-c836b52dd1b8d6a2999721f235e6c2b6079b266c.tar.lz
cuberite-c836b52dd1b8d6a2999721f235e6c2b6079b266c.tar.xz
cuberite-c836b52dd1b8d6a2999721f235e6c2b6079b266c.tar.zst
cuberite-c836b52dd1b8d6a2999721f235e6c2b6079b266c.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 {}
+} ;
+
+
+
+