#include <GameStartMenuItem.h>
Inheritance diagram for UI::GameStartMenuItem:
Public Member Functions | |
GameStartMenuItem (std::wstring label, std::string filename) | |
Create with specified label to start specified track. | |
virtual | ~GameStartMenuItem () |
virtual void | activate () |
Start the game. | |
void | set_main_loop (MainLoop &main_loop) |
Set the main loop to use to start the game going. | |
Protected Attributes | |
std::string | filename |
MainLoop * | main_loop |
Definition at line 26 of file GameStartMenuItem.h.
UI::GameStartMenuItem::GameStartMenuItem | ( | std::wstring | label, | |
std::string | filename | |||
) |
Create with specified label to start specified track.
label | The caption displayed on the menu item. | |
filename | The filename of the track to load. |
Definition at line 26 of file GameStartMenuItem.cpp.
UI::GameStartMenuItem::~GameStartMenuItem | ( | ) | [virtual] |
Definition at line 34 of file GameStartMenuItem.cpp.
void UI::GameStartMenuItem::activate | ( | ) | [virtual] |
Start the game.
This is called when this menu item is selected from the menu. set_main_loop() must have been called before activate().
Reimplemented from UI::MenuItem.
Reimplemented in UI::ReplayStartMenuItem.
Definition at line 38 of file GameStartMenuItem.cpp.
void UI::GameStartMenuItem::set_main_loop | ( | MainLoop & | main_loop | ) |
Set the main loop to use to start the game going.
main_loop | The MainLoop to switch the scene of when activated. |
Definition at line 59 of file GameStartMenuItem.cpp.
std::string UI::GameStartMenuItem::filename [protected] |
Definition at line 48 of file GameStartMenuItem.h.
MainLoop* UI::GameStartMenuItem::main_loop [protected] |
Definition at line 49 of file GameStartMenuItem.h.
Generated at Mon Sep 6 00:41:19 2010 by Doxygen version 1.4.7 for Racer version svn335.