OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
timeadvancer.hpp
Go to the documentation of this file.
1 #ifndef MWGUI_TIMEADVANCER_H
2 #define MWGUI_TIMEADVANCER_H
3 
4 #include <MyGUI_Widget.h>
5 
6 namespace MWGui
7 {
9  {
10  public:
11  TimeAdvancer(float delay);
12 
13  void run(int hours, int interruptAt=-1);
14  void stop();
15  void onFrame(float dt);
16 
17  int getHours();
18  bool isRunning();
19 
20  // signals
21  typedef MyGUI::delegates::CMultiDelegate0 EventHandle_Void;
22  typedef MyGUI::delegates::CMultiDelegate2<int, int> EventHandle_IntInt;
23 
27 
28  private:
29  bool mRunning;
30 
31  int mCurHour;
32  int mHours;
34 
35  float mDelay;
37  };
38 }
39 
40 #endif
MyGUI::delegates::CMultiDelegate2< int, int > EventHandle_IntInt
Definition: timeadvancer.hpp:22
void onFrame(float dt)
Definition: timeadvancer.cpp:33
float mDelay
Definition: timeadvancer.hpp:35
void stop()
Definition: timeadvancer.cpp:28
int mHours
Definition: timeadvancer.hpp:32
EventHandle_Void eventFinished
Definition: timeadvancer.hpp:26
void run(int hours, int interruptAt=-1)
Definition: timeadvancer.cpp:18
bool mRunning
Definition: timeadvancer.hpp:29
int getHours()
Definition: timeadvancer.cpp:64
MyGUI::delegates::CMultiDelegate0 EventHandle_Void
Definition: timeadvancer.hpp:21
int mInterruptAt
Definition: timeadvancer.hpp:33
TimeAdvancer(float delay)
Definition: timeadvancer.cpp:8
bool isRunning()
Definition: timeadvancer.cpp:69
EventHandle_Void eventInterrupted
Definition: timeadvancer.hpp:25
Definition: timeadvancer.hpp:8
float mRemainingTime
Definition: timeadvancer.hpp:36
EventHandle_IntInt eventProgressChanged
Definition: timeadvancer.hpp:24
int mCurHour
Definition: timeadvancer.hpp:31