Permalink
Browse files

added get_total_pause_time

  • Loading branch information...
1 parent 7c0bce1 commit 5f5ee589bd67f049875cca5633ecefd7c6235ca7 @eilara committed Mar 15, 2012
Showing with 7 additions and 1 deletion.
  1. +6 −1 src/Tween.cpp
  2. +1 −0 src/Tween.h
View
@@ -26,8 +26,9 @@ void Tween::start(Uint32 now) {
Ticker::start(now);
control->animation_started();
- cycle_start_time = now;
+ cycle_start_time = now;
last_cycle_complete_time = 0;
+ total_pause_time = 0;
form->start(control->is_reversed()? 1 :0);
}
@@ -53,6 +54,10 @@ Uint32 Tween::get_cycle_start_time() {
return cycle_start_time;
}
+Uint32 Tween::get_total_pause_time() {
+ return total_pause_time;
+}
+
Uint32 Tween::get_duration() {
return duration;
}
View
@@ -21,6 +21,7 @@ class Tween : public Ticker {
void resume (Uint32 now);
Uint32 get_cycle_start_time();
+ Uint32 get_total_pause_time();
Uint32 get_duration();
void set_duration(Uint32 new_duration, Uint32 now);
protected:

0 comments on commit 5f5ee58

Please sign in to comment.