BWAPI
|
#include <TimeManager.h>
Public Member Functions | |
void | update () |
std::string | getName () const |
void | display () const |
void | insert (TimeManaged *toManage) |
const std::list< TimeManaged * > & | getManaged () const |
Static Public Member Functions | |
static VOID CALLBACK | suspendAll (HWND hwnd, UINT message, UINT idTimer, DWORD dwTime) |
Friends | |
class | CSingleton< TimeManager > |
Special exception to abort a thread gently The goal of this class is to provide tools related to TimeManager.
The frame count since the begining can be retrieved. All classes running an update/onFrame() in BWAPI's thread should register here To be terminated if they take more than 1/25 sec (40ms) to run (and so slow down the game).
void TimeManager::display | ( | ) | const |
const std::list< TimeManaged * > & TimeManager::getManaged | ( | ) | const |
std::string TimeManager::getName | ( | ) | const |
void TimeManager::insert | ( | TimeManaged * | toManage | ) |
VOID CALLBACK TimeManager::suspendAll | ( | HWND | hwnd, |
UINT | message, | ||
UINT | idTimer, | ||
DWORD | dwTime | ||
) | [static] |
void TimeManager::update | ( | ) |
friend class CSingleton< TimeManager > [friend] |