diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-06-18 21:09:51 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-06-18 21:09:51 +0200 |
commit | b2138b132cc0f7bf03bdd723725729d76067ff23 (patch) | |
tree | d573bf041c1d47c7bf68cef49bae0be1d52ffc91 /source/TNTEntity.h | |
parent | TNT fixes. (diff) | |
download | cuberite-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 'source/TNTEntity.h')
-rw-r--r-- | source/TNTEntity.h | 13 |
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
};
|