#include <ScreenDisplayer.h>
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 () |
Defines a helper class for displaying images on screen for a duration of time.
Ex. A splash or level loading screens.
Constructor.
Destructor.
| static void gameplay::ScreenDisplayer::finish | ( | ) | [static] |
Finishes running the current screen displayer.
Note: this is intended for use from Lua scripts.
| 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.
| instance | See Game::renderOnce(). |
| method | See Game::renderOnce(). |
| cookie | See Game::renderOnce(). |
| time | The 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.
| function | See Game::renderOnce(const char*). |
| time | The minimum amount of time to display the screen (in milliseconds). |
1.7.6.1