diff options
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
};
|