summaryrefslogtreecommitdiff
path: root/scene/main/timer.h
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2016-04-01 07:38:49 +0200
committerRémi Verschelde <remi@verschelde.fr>2016-04-01 07:38:49 +0200
commit3cc7b6fa5ddaea8cbc29a32ede638834ef83de56 (patch)
tree636fb6a90691bc8303619ee33ac0042db0e69f62 /scene/main/timer.h
parent8708a284f7b5390a48ea2fd95848f60cc40d0bf0 (diff)
parent995890d5b29fc0dc4eca66d9f11e1e3f8f275ae0 (diff)
Merge pull request #4194 from HeartoLazor/timerpause
Now the timer could be paused
Diffstat (limited to 'scene/main/timer.h')
-rw-r--r--scene/main/timer.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/main/timer.h b/scene/main/timer.h
index 0baea76fad..688be6e4f2 100644
--- a/scene/main/timer.h
+++ b/scene/main/timer.h
@@ -38,6 +38,8 @@ class Timer : public Node {
float wait_time;
bool one_shot;
bool autostart;
+ bool processing;
+ bool active;
double time_left;
protected:
@@ -62,6 +64,8 @@ public:
void start();
void stop();
+ void set_active(bool p_active);
+ bool is_active() const;
float get_time_left() const;