UI::TitleScene Class Reference

The scene that shows the main menu and logos. More...

#include <TitleScene.h>

Inheritance diagram for UI::TitleScene:

Engine::Scene List of all members.

Public Member Functions

 TitleScene ()
virtual ~TitleScene ()
void take_input (Engine::InputReport &report)
 Take input from an input device.
void update_logic (unsigned int milliseconds_elapsed)
 Process any status changes that occur due to elapsed time.
void draw ()
 Draw the scene using OpenGL commands.
void do_sound ()
 Update the audio.
virtual void attach_main_loop (MainLoop &main_loop)
 Attach a Main loop object.

Private Attributes

float t
Track::Texture logo_texture
float fps
Menumain_menu
SubMenuItem mi_single_player
SubMenuItem mi_multiplayer
ReplayStartMenuItem mi_replay
MenuItem mi_options
MenuItem mi_quit
MenuItem mi_sp_grand_prix
MenuItem mi_sp_time_trial
MenuItem mi_sp_practice
GameStartMenuItem mi_mp_c0
GameStartMenuItem mi_mp_c1
GameStartMenuItem mi_mp_c2
GameStartMenuItem mi_mp_c3
GameStartMenuItem mi_mp_c4

Detailed Description

The scene that shows the main menu and logos.

This is the first Engine::Scene to be created. It provides acess to the main menu.

Definition at line 32 of file TitleScene.h.


Constructor & Destructor Documentation

UI::TitleScene::TitleScene (  ) 

Definition at line 27 of file TitleScene.cpp.

UI::TitleScene::~TitleScene (  )  [virtual]

Definition at line 70 of file TitleScene.cpp.


Member Function Documentation

void UI::TitleScene::attach_main_loop ( MainLoop main_loop  )  [virtual]

Attach a Main loop object.

If the scene wishes to end, it can notify the main loop obect by calling exit.

Reimplemented from Engine::Scene.

Definition at line 175 of file TitleScene.cpp.

void UI::TitleScene::do_sound (  )  [virtual]

Update the audio.

Implements Engine::Scene.

Definition at line 171 of file TitleScene.cpp.

void UI::TitleScene::draw (  )  [virtual]

Draw the scene using OpenGL commands.

Must go from any state to ready for a buffer swap.

Implements Engine::Scene.

Definition at line 90 of file TitleScene.cpp.

void UI::TitleScene::take_input ( Engine::InputReport report  )  [virtual]

Take input from an input device.

Parameters:
report An input report, which may be freed immediately after the call returns.

Implements Engine::Scene.

Definition at line 74 of file TitleScene.cpp.

void UI::TitleScene::update_logic ( unsigned int  milliseconds_elapsed  )  [virtual]

Process any status changes that occur due to elapsed time.

Parameters:
milliseconds_elapsed time in milliseconds since last update_logic.

Implements Engine::Scene.

Definition at line 80 of file TitleScene.cpp.


Member Data Documentation

float UI::TitleScene::fps [private]

Definition at line 45 of file TitleScene.h.

Track::Texture UI::TitleScene::logo_texture [private]

Definition at line 44 of file TitleScene.h.

Menu* UI::TitleScene::main_menu [private]

Definition at line 48 of file TitleScene.h.

GameStartMenuItem UI::TitleScene::mi_mp_c0 [private]

Definition at line 60 of file TitleScene.h.

GameStartMenuItem UI::TitleScene::mi_mp_c1 [private]

Definition at line 61 of file TitleScene.h.

GameStartMenuItem UI::TitleScene::mi_mp_c2 [private]

Definition at line 62 of file TitleScene.h.

GameStartMenuItem UI::TitleScene::mi_mp_c3 [private]

Definition at line 63 of file TitleScene.h.

GameStartMenuItem UI::TitleScene::mi_mp_c4 [private]

Definition at line 64 of file TitleScene.h.

SubMenuItem UI::TitleScene::mi_multiplayer [private]

Definition at line 51 of file TitleScene.h.

MenuItem UI::TitleScene::mi_options [private]

Definition at line 53 of file TitleScene.h.

MenuItem UI::TitleScene::mi_quit [private]

Definition at line 54 of file TitleScene.h.

ReplayStartMenuItem UI::TitleScene::mi_replay [private]

Definition at line 52 of file TitleScene.h.

SubMenuItem UI::TitleScene::mi_single_player [private]

Definition at line 50 of file TitleScene.h.

MenuItem UI::TitleScene::mi_sp_grand_prix [private]

Definition at line 56 of file TitleScene.h.

MenuItem UI::TitleScene::mi_sp_practice [private]

Definition at line 58 of file TitleScene.h.

MenuItem UI::TitleScene::mi_sp_time_trial [private]

Definition at line 57 of file TitleScene.h.

float UI::TitleScene::t [private]

Definition at line 43 of file TitleScene.h.


The documentation for this class was generated from the following files:
Get Racer at SourceForge.net. Fast, secure and Free Open Source software downloads

Generated at Mon Sep 6 00:41:19 2010 by Doxygen version 1.4.7 for Racer version svn335.