#include <menuTitle.h>
Inherits spriteManager.
Inheritance diagram for menuTitle:
Public Member Functions | |
menuTitle (u8 newScreen=0) | |
Initialise the top menu spriteManager and assign it a screen. | |
virtual | ~menuTitle () |
void | loadRotatingBackground () |
Load the graphics for the frontend splash screen. | |
virtual void | gameTick () |
Update the rotation of the background image and the title graphics. | |
virtual void | activate () |
When activated, load the background image and all necessary sprites. | |
virtual void | deactivate () |
Put this spriteManager into a hibernation state so that tick events are no longer executed for it. | |
Private Attributes | |
bool | bRotateBackground |
if true, attempt to rotate the background image, which must be a BGRotMap | |
int | backgroundAngle |
angle that the background image is at currently |
It displays a rotating background image, and a vibrating title graphic that looks pretty cool.
Definition at line 38 of file menuTitle.h.
menuTitle::menuTitle | ( | u8 | newScreen = 0 |
) |
Initialise the top menu spriteManager and assign it a screen.
newScreen | the screen this spriteManager should handle. 1 is the top screen, 0 is the bottom. |
Definition at line 28 of file menuTitle.cpp.
menuTitle::~menuTitle | ( | ) | [virtual] |
Definition at line 33 of file menuTitle.cpp.
void menuTitle::loadRotatingBackground | ( | ) |
Load the graphics for the frontend splash screen.
Loads a rotating background image, and vibrating title graphic.
Definition at line 42 of file menuTitle.cpp.
References spriteObject::addChild(), bRotateBackground, spriteObject::givePallete(), spriteObject::giveSprite(), and spriteManager::screen.
Referenced by activate().
Here is the call graph for this function:
void menuTitle::gameTick | ( | ) | [virtual] |
Update the rotation of the background image and the title graphics.
Reimplemented from spriteManager.
Definition at line 63 of file menuTitle.cpp.
References backgroundAngle, bRotateBackground, spriteManager::gameTick(), and spriteManager::screen.
Referenced by main().
Here is the call graph for this function:
virtual void menuTitle::activate | ( | ) | [inline, virtual] |
When activated, load the background image and all necessary sprites.
Reimplemented from spriteManager.
Definition at line 51 of file menuTitle.h.
References spriteManager::activate(), and loadRotatingBackground().
Referenced by main().
Here is the call graph for this function:
virtual void menuTitle::deactivate | ( | ) | [inline, virtual] |
Put this spriteManager into a hibernation state so that tick events are no longer executed for it.
Reimplemented from spriteManager.
Definition at line 52 of file menuTitle.h.
References spriteManager::deactivate(), and spriteManager::unloadBackground().
Here is the call graph for this function:
bool menuTitle::bRotateBackground [private] |
if true, attempt to rotate the background image, which must be a BGRotMap
Definition at line 57 of file menuTitle.h.
Referenced by gameTick(), and loadRotatingBackground().
int menuTitle::backgroundAngle [private] |
angle that the background image is at currently
Definition at line 59 of file menuTitle.h.
Referenced by gameTick().