diff options
author | Mattes D <github@xoft.cz> | 2014-12-19 23:37:35 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-12-19 23:37:35 +0100 |
commit | ffd8356fc1b7a0222b622f14ea527bf33d1d3b89 (patch) | |
tree | 9a70b99863a3ca039881c0e42d84d4b21a8b6e43 /src/Mobs/Guardian.h | |
parent | Merge pull request #1679 from SphinxC0re/master (diff) | |
parent | Fixed Guardians size and health (diff) | |
download | cuberite-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.h | 31 |
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 {} +} ; + + + + |