BWAPI
Public Member Functions | Static Public Member Functions | Friends
TimeManager Class Reference

#include <TimeManager.h>

Inheritance diagram for TimeManager:
Inheritance graph
[legend]
Collaboration diagram for TimeManager:
Collaboration graph
[legend]

List of all members.

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 >

Detailed Description

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).


Member Function Documentation

void TimeManager::display ( ) const
const std::list< TimeManaged * > & TimeManager::getManaged ( ) const
std::string TimeManager::getName ( ) const
void TimeManager::insert ( TimeManaged toManage)

Here is the caller graph for this function:

VOID CALLBACK TimeManager::suspendAll ( HWND  hwnd,
UINT  message,
UINT  idTimer,
DWORD  dwTime 
) [static]

Here is the caller graph for this function:

Here is the call graph for this function:


Friends And Related Function Documentation

friend class CSingleton< TimeManager > [friend]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines