diff options
author | Masy98 <masy@antheruscraft.de> | 2014-12-18 19:30:32 +0100 |
---|---|---|
committer | Masy98 <masy@antheruscraft.de> | 2014-12-18 19:30:32 +0100 |
commit | c836b52dd1b8d6a2999721f235e6c2b6079b266c (patch) | |
tree | ae04bd279e3bddb94119ce0b9f9aed9344f8f140 /src/Mobs/Guardian.h | |
parent | Clang needs the libstdc++ that comes with gcc-4.8 (diff) | |
download | cuberite-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 '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 {} +} ; + + + + |