diff options
author | madmaxoft <github@xoft.cz> | 2013-09-07 21:26:17 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2013-09-07 21:26:17 +0200 |
commit | 7938f18c57c4ef3909d93b7c13f9e24b2b4c81f5 (patch) | |
tree | 29930eb3f29fddc18c4ef8f06b552caf95cd37c3 /source/Entities | |
parent | Implemented ghast fireball and firecharge projectiles (diff) | |
download | cuberite-7938f18c57c4ef3909d93b7c13f9e24b2b4c81f5.tar cuberite-7938f18c57c4ef3909d93b7c13f9e24b2b4c81f5.tar.gz cuberite-7938f18c57c4ef3909d93b7c13f9e24b2b4c81f5.tar.bz2 cuberite-7938f18c57c4ef3909d93b7c13f9e24b2b4c81f5.tar.lz cuberite-7938f18c57c4ef3909d93b7c13f9e24b2b4c81f5.tar.xz cuberite-7938f18c57c4ef3909d93b7c13f9e24b2b4c81f5.tar.zst cuberite-7938f18c57c4ef3909d93b7c13f9e24b2b4c81f5.zip |
Diffstat (limited to 'source/Entities')
-rw-r--r-- | source/Entities/ProjectileEntity.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source/Entities/ProjectileEntity.h b/source/Entities/ProjectileEntity.h index 3e87f5a2c..547aa174e 100644 --- a/source/Entities/ProjectileEntity.h +++ b/source/Entities/ProjectileEntity.h @@ -67,6 +67,11 @@ public: /// Returns true if the projectile has hit the ground and is stuck there bool IsInGround(void) const { return m_IsInGround; } + // tolua_end + + /// Sets the internal InGround flag. To be used by MCA loader only! + void SetIsInGround(bool a_IsInGround) { m_IsInGround = a_IsInGround; } + protected: eKind m_ProjectileKind; @@ -76,8 +81,6 @@ protected: /// True if the projectile has hit the ground and is stuck there bool m_IsInGround; - // tolua_end - // cEntity overrides: virtual void Tick(float a_Dt, cChunk & a_Chunk) override; virtual void HandlePhysics(float a_Dt, cChunk & a_Chunk) override; |