summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Guardian.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-12-19 23:37:35 +0100
committerMattes D <github@xoft.cz>2014-12-19 23:37:35 +0100
commitffd8356fc1b7a0222b622f14ea527bf33d1d3b89 (patch)
tree9a70b99863a3ca039881c0e42d84d4b21a8b6e43 /src/Mobs/Guardian.h
parentMerge pull request #1679 from SphinxC0re/master (diff)
parentFixed Guardians size and health (diff)
downloadcuberite-ffd8356fc1b7a0222b622f14ea527bf33d1d3b89.tar
cuberite-ffd8356fc1b7a0222b622f14ea527bf33d1d3b89.tar.gz
cuberite-ffd8356fc1b7a0222b622f14ea527bf33d1d3b89.tar.bz2
cuberite-ffd8356fc1b7a0222b622f14ea527bf33d1d3b89.tar.lz
cuberite-ffd8356fc1b7a0222b622f14ea527bf33d1d3b89.tar.xz
cuberite-ffd8356fc1b7a0222b622f14ea527bf33d1d3b89.tar.zst
cuberite-ffd8356fc1b7a0222b622f14ea527bf33d1d3b89.zip
Diffstat (limited to 'src/Mobs/Guardian.h')
-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 {}
+} ;
+
+
+
+