summaryrefslogtreecommitdiffstats
path: root/src/Entities
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2013-12-14 16:32:14 +0100
committerMattes D <github@xoft.cz>2013-12-14 16:32:14 +0100
commit2aa98c7bebbb80a86964a4c80a5edb289835d834 (patch)
treea3ca154c75d6b348266d7de216f453f58c069b26 /src/Entities
parentMerge pull request #426 from SamJBarney/master (diff)
parentExported the cTNTEntity (diff)
downloadcuberite-2aa98c7bebbb80a86964a4c80a5edb289835d834.tar
cuberite-2aa98c7bebbb80a86964a4c80a5edb289835d834.tar.gz
cuberite-2aa98c7bebbb80a86964a4c80a5edb289835d834.tar.bz2
cuberite-2aa98c7bebbb80a86964a4c80a5edb289835d834.tar.lz
cuberite-2aa98c7bebbb80a86964a4c80a5edb289835d834.tar.xz
cuberite-2aa98c7bebbb80a86964a4c80a5edb289835d834.tar.zst
cuberite-2aa98c7bebbb80a86964a4c80a5edb289835d834.zip
Diffstat (limited to 'src/Entities')
-rw-r--r--src/Entities/TNTEntity.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/Entities/TNTEntity.h b/src/Entities/TNTEntity.h
index eb5040e8a..d1fcae766 100644
--- a/src/Entities/TNTEntity.h
+++ b/src/Entities/TNTEntity.h
@@ -6,13 +6,14 @@
-
+// tolua_begin
class cTNTEntity :
public cEntity
{
typedef cEntity super;
public:
+ // tolua_end
CLASS_PROTODEF(cTNTEntity);
cTNTEntity(double a_X, double a_Y, double a_Z, double a_FuseTimeInSec);
@@ -21,11 +22,14 @@ public:
// cEntity overrides:
virtual void SpawnOn(cClientHandle & a_ClientHandle) override;
virtual void Tick(float a_Dt, cChunk & a_Chunk) override;
+
+ double GetCounterTime(void) const { return m_Counter; } // tolua_export
+ double GetMaxFuseTime(void) const { return m_MaxFuseTime; } // tolua_export
protected:
double m_Counter; ///< How much time has elapsed since the object was created, in seconds
double m_MaxFuseTime; ///< How long the fuse is, in seconds
-};
+}; // tolua_export