Credits Class Reference
Displays scrolling game credits.
More...
#include <Game/Credits.h>
List of all members.
Public Member Functions |
| Credits () |
| Constructor.
|
void | Reset () |
| Resets the credits to the beginning.
|
void | SetArea (const Rectf &area) |
| Sets the draw area for the credits.
|
bool | Load (const char *fileName) |
| Loads credits from a xml file.
|
bool | IsComplete () const |
| Determins if the credits are finished.
|
void | Update (float dt) |
| Updates the credits.
|
void | Draw () const |
| Draws the credits.
|
Detailed Description
Displays scrolling game credits.
Member Function Documentation
bool Credits::IsComplete |
( |
|
) |
const |
Determins if the credits are finished.
- Returns:
- true if the credits have been displayed, false otherwise.
bool Credits::Load |
( |
const char * |
fileName |
) |
|
Loads credits from a xml file.
- Parameters:
-
[in] | fileName | the name of the xml file containing the credits. |
- Returns:
- true of the credits were loaded, false otherwise.
void Credits::SetArea |
( |
const Rectf & |
area |
) |
|
Sets the draw area for the credits.
- Parameters:
-
[in] | area | the area the credits are displayed in. |
void Credits::Update |
( |
float |
dt |
) |
|
Updates the credits.
- Parameters:
-
[in] | dt | the time in seconds since the last frame. |
The documentation for this class was generated from the following files: