menuTitle Class Reference

The top screen for the game frontend, which is not interactive at all and really only serves to look pretty. More...

#include <menuTitle.h>

Inherits spriteManager.

Inheritance diagram for menuTitle:

Inheritance graph
[legend]
Collaboration diagram for menuTitle:

Collaboration graph
[legend]
List of all members.

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

Detailed Description

The top screen for the game frontend, which is not interactive at all and really only serves to look pretty.

It displays a rotating background image, and a vibrating title graphic that looks pretty cool.

Author:
pospi

Definition at line 38 of file menuTitle.h.


Constructor & Destructor Documentation

menuTitle::menuTitle ( u8  newScreen = 0  ) 

Initialise the top menu spriteManager and assign it a screen.

Parameters:
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.


Member Function Documentation

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:


Member Data Documentation

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


The documentation for this class was generated from the following files:
Generated on Tue Mar 13 23:27:55 2007 for MDuel DS by  doxygen 1.5.1-p1