overview wiki api reference download
 All Classes Functions Variables Typedefs Enumerations Enumerator
Public Member Functions | Static Public Member Functions
gameplay::ScreenDisplayer Class Reference

#include <ScreenDisplayer.h>

List of all members.

Public Member Functions

 ScreenDisplayer ()
 ~ScreenDisplayer ()
template<typename T >
void run (T *instance, void(T::*method)(void *), void *cookie, unsigned long time)

Static Public Member Functions

static void start (const char *function, unsigned long time)
static void finish ()

Detailed Description

Defines a helper class for displaying images on screen for a duration of time.

Ex. A splash or level loading screens.


Constructor & Destructor Documentation

Constructor.

Destructor.


Member Function Documentation

static void gameplay::ScreenDisplayer::finish ( ) [static]

Finishes running the current screen displayer.

Note: this is intended for use from Lua scripts.

template<typename T >
void gameplay::ScreenDisplayer::run ( T *  instance,
void(T::*)(void *)  method,
void *  cookie,
unsigned long  time 
)

Displays a screen using the Game::renderOnce() mechanism for at least the given amount of time.

Parameters:
instanceSee Game::renderOnce().
methodSee Game::renderOnce().
cookieSee Game::renderOnce().
timeThe minimum amount of time to display the screen (in milliseconds).
static void gameplay::ScreenDisplayer::start ( const char *  function,
unsigned long  time 
) [static]

Starts a new screen displayer running; draws a screen using the Game::renderOnce mechanism for at least the given amount of time.

Note: this is intended for use from Lua scripts.

Parameters:
functionSee Game::renderOnce(const char*).
timeThe minimum amount of time to display the screen (in milliseconds).
 All Classes Functions Variables Typedefs Enumerations Enumerator