X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Ftimer.hpp;h=4168baefda36b55a988f6627388731c6877059dc;hb=7e1ffbded538860c7f647d4597ee3dcb1f0917ca;hp=8b5641c224bcca9897f641d717c07e16b4af0968;hpb=07ddaed2a657e4d2a3d038fed223fc5827159caf;p=supertux.git diff --git a/src/timer.hpp b/src/timer.hpp index 8b5641c22..4168baefd 100644 --- a/src/timer.hpp +++ b/src/timer.hpp @@ -21,9 +21,10 @@ #define __SUPERTUX_TIMER_H__ extern float game_time; +extern float real_time; /** - * new simpler timer designed to be used in the update functions of objects + * Simple timer designed to be used in the update functions of objects */ class Timer { @@ -32,12 +33,12 @@ public: ~Timer(); /** start the timer with the given period (in seconds). - * If cyclic=true then the timer willl be reset after each period. + * If cyclic=true then the timer will be reset after each period. * Set period to zero if you want to disable the timer. */ void start(float period, bool cyclic = false); /** returns true if a period (or more) passed since start call or last - * successfull check + * successful check */ bool check(); /** stop the timer */ @@ -61,4 +62,3 @@ private: }; #endif -