summaryrefslogtreecommitdiff
path: root/scene/main/timer.h
diff options
context:
space:
mode:
Diffstat (limited to 'scene/main/timer.h')
-rwxr-xr-x[-rw-r--r--]scene/main/timer.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/scene/main/timer.h b/scene/main/timer.h
index 756b779717..dd4711ec37 100644..100755
--- a/scene/main/timer.h
+++ b/scene/main/timer.h
@@ -6,6 +6,7 @@
/* http://www.godotengine.org */
/*************************************************************************/
/* Copyright (c) 2007-2017 Juan Linietsky, Ariel Manzur. */
+/* Copyright (c) 2014-2017 Godot Engine contributors (cf. AUTHORS.md) */
/* */
/* Permission is hereby granted, free of charge, to any person obtaining */
/* a copy of this software and associated documentation files (the */
@@ -39,7 +40,7 @@ class Timer : public Node {
bool one_shot;
bool autostart;
bool processing;
- bool active;
+ bool paused;
double time_left;
@@ -64,8 +65,11 @@ public:
void start();
void stop();
- void set_active(bool p_active);
- bool is_active() const;
+
+ void set_paused(bool p_paused);
+ bool is_paused() const;
+
+ bool is_stopped() const;
float get_time_left() const;