diff options
author | Mattes D <github@xoft.cz> | 2014-04-23 09:46:06 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-04-23 09:46:06 +0200 |
commit | 0d0e0af2d87bf7cdd34668e7f48480770a527408 (patch) | |
tree | aac476c2553e2b816d88c036812b9139d93ffe35 /src/Entities/Entity.cpp | |
parent | Updated NetherFort prefabs from the Gallery server. (diff) | |
parent | Renamed getter and setter for IsFireproof. (diff) | |
download | cuberite-0d0e0af2d87bf7cdd34668e7f48480770a527408.tar cuberite-0d0e0af2d87bf7cdd34668e7f48480770a527408.tar.gz cuberite-0d0e0af2d87bf7cdd34668e7f48480770a527408.tar.bz2 cuberite-0d0e0af2d87bf7cdd34668e7f48480770a527408.tar.lz cuberite-0d0e0af2d87bf7cdd34668e7f48480770a527408.tar.xz cuberite-0d0e0af2d87bf7cdd34668e7f48480770a527408.tar.zst cuberite-0d0e0af2d87bf7cdd34668e7f48480770a527408.zip |
Diffstat (limited to 'src/Entities/Entity.cpp')
-rw-r--r-- | src/Entities/Entity.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/Entities/Entity.cpp b/src/Entities/Entity.cpp index 9a80d3e80..6da6da54e 100644 --- a/src/Entities/Entity.cpp +++ b/src/Entities/Entity.cpp @@ -45,6 +45,7 @@ cEntity::cEntity(eEntityType a_EntityType, double a_X, double a_Y, double a_Z, d , m_IsInitialized(false) , m_EntityType(a_EntityType) , m_World(NULL) + , m_IsFireproof(false) , m_TicksSinceLastBurnDamage(0) , m_TicksSinceLastLavaDamage(0) , m_TicksSinceLastFireDamage(0) @@ -1042,6 +1043,16 @@ void cEntity::SetMaxHealth(int a_MaxHealth) +/// Sets whether the entity is fireproof +void cEntity::SetIsFireproof(bool a_IsFireproof) +{ + m_IsFireproof = a_IsFireproof; +} + + + + + /// Puts the entity on fire for the specified amount of ticks void cEntity::StartBurning(int a_TicksLeftBurning) { |