summaryrefslogtreecommitdiffstats
path: root/source/TNTEntity.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-06-18 21:09:51 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-06-18 21:09:51 +0200
commitb2138b132cc0f7bf03bdd723725729d76067ff23 (patch)
treed573bf041c1d47c7bf68cef49bae0be1d52ffc91 /source/TNTEntity.h
parentTNT fixes. (diff)
downloadcuberite-b2138b132cc0f7bf03bdd723725729d76067ff23.tar
cuberite-b2138b132cc0f7bf03bdd723725729d76067ff23.tar.gz
cuberite-b2138b132cc0f7bf03bdd723725729d76067ff23.tar.bz2
cuberite-b2138b132cc0f7bf03bdd723725729d76067ff23.tar.lz
cuberite-b2138b132cc0f7bf03bdd723725729d76067ff23.tar.xz
cuberite-b2138b132cc0f7bf03bdd723725729d76067ff23.tar.zst
cuberite-b2138b132cc0f7bf03bdd723725729d76067ff23.zip
Diffstat (limited to '')
-rw-r--r--source/TNTEntity.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/source/TNTEntity.h b/source/TNTEntity.h
index 8414b2430..d20b6aca4 100644
--- a/source/TNTEntity.h
+++ b/source/TNTEntity.h
@@ -11,21 +11,22 @@
class cTNTEntity :
public cEntity
{
-typedef cEntity super;
+ typedef cEntity super;
public:
CLASS_PROTODEF(cTNTEntity);
- cTNTEntity(int a_X,int a_Y,int a_Z,float a_MaxFuseTime);
- cTNTEntity(const Vector3i a_Pos,float a_MaxFuseTime);
+ cTNTEntity(double a_X, double a_Y, double a_Z, float a_FuseTimeInSec);
+ cTNTEntity(const Vector3d & a_Pos, float a_FuseTimeInSec);
// cEntity overrides:
virtual void Initialize(cWorld * a_World) override;
virtual void SpawnOn(cClientHandle & a_ClientHandle) override;
virtual void Tick(float a_Dt, cChunk & a_Chunk) override;
-private:
- float m_Counter; //In seconds too
- float m_MaxFuseTime; //in seconds
+
+protected:
+ float m_Counter; ///< How much time has elapsed since the object was created, in seconds
+ float m_MaxFuseTime; ///< How long the fuse is, in seconds
};