OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Types | Public Member Functions | Public Attributes | Private Attributes | List of all members
MWGui::TimeAdvancer Class Reference

#include <timeadvancer.hpp>

Collaboration diagram for MWGui::TimeAdvancer:

Public Types

typedef
MyGUI::delegates::CMultiDelegate0 
EventHandle_Void
 
typedef
MyGUI::delegates::CMultiDelegate2
< int, int
EventHandle_IntInt
 

Public Member Functions

 TimeAdvancer (float delay)
 
void run (int hours, int interruptAt=-1)
 
void stop ()
 
void onFrame (float dt)
 
int getHours ()
 
bool isRunning ()
 

Public Attributes

EventHandle_IntInt eventProgressChanged
 
EventHandle_Void eventInterrupted
 
EventHandle_Void eventFinished
 

Private Attributes

bool mRunning
 
int mCurHour
 
int mHours
 
int mInterruptAt
 
float mDelay
 
float mRemainingTime
 

Member Typedef Documentation

typedef MyGUI::delegates::CMultiDelegate2<int, int> MWGui::TimeAdvancer::EventHandle_IntInt
typedef MyGUI::delegates::CMultiDelegate0 MWGui::TimeAdvancer::EventHandle_Void

Constructor & Destructor Documentation

MWGui::TimeAdvancer::TimeAdvancer ( float  delay)

Member Function Documentation

int MWGui::TimeAdvancer::getHours ( )
bool MWGui::TimeAdvancer::isRunning ( )

Here is the caller graph for this function:

void MWGui::TimeAdvancer::onFrame ( float  dt)

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::TimeAdvancer::run ( int  hours,
int  interruptAt = -1 
)

Here is the caller graph for this function:

void MWGui::TimeAdvancer::stop ( )

Here is the caller graph for this function:

Member Data Documentation

EventHandle_Void MWGui::TimeAdvancer::eventFinished
EventHandle_Void MWGui::TimeAdvancer::eventInterrupted
EventHandle_IntInt MWGui::TimeAdvancer::eventProgressChanged
int MWGui::TimeAdvancer::mCurHour
private
float MWGui::TimeAdvancer::mDelay
private
int MWGui::TimeAdvancer::mHours
private
int MWGui::TimeAdvancer::mInterruptAt
private
float MWGui::TimeAdvancer::mRemainingTime
private
bool MWGui::TimeAdvancer::mRunning
private

The documentation for this class was generated from the following files: