00001 00005 /* Copyright © 2009 James Legg. 00006 This program is free software: you can redistribute it and/or modify 00007 it under the terms of the GNU General Public License as published by 00008 the Free Software Foundation, either version 3 of the License, or 00009 (at your option) any later version. 00010 */ 00011 #ifndef TITLESCENE_H_ 00012 #define TITLESCENE_H_ 00013 00014 #include "../Engine/Scene.h" 00015 #include "../MainLoop.h" 00016 #include <libtrack/Texture.h> 00017 #include "MenuItem.h" 00018 #include "SubMenuItem.h" 00019 #include "GameStartMenuItem.h" 00020 #include "ReplayStartMenuItem.h" 00021 00023 namespace UI 00024 { 00025 00026 class Menu; 00027 00032 class TitleScene : public Engine::Scene 00033 { 00034 public: 00035 TitleScene(); 00036 virtual ~TitleScene(); 00037 void take_input(Engine::InputReport & report); 00038 void update_logic(unsigned int milliseconds_elapsed); 00039 void draw(); 00040 void do_sound(); 00041 virtual void attach_main_loop(MainLoop & main_loop); 00042 private: 00043 float t; 00044 Track::Texture logo_texture; 00045 float fps; 00046 00047 // menu stuff 00048 Menu * main_menu; 00049 // main menu items 00050 SubMenuItem mi_single_player; 00051 SubMenuItem mi_multiplayer; 00052 ReplayStartMenuItem mi_replay; 00053 MenuItem mi_options; 00054 MenuItem mi_quit; 00055 // single player submenu 00056 MenuItem mi_sp_grand_prix; 00057 MenuItem mi_sp_time_trial; 00058 MenuItem mi_sp_practice; 00059 // multiplayer submenu 00060 GameStartMenuItem mi_mp_c0; 00061 GameStartMenuItem mi_mp_c1; 00062 GameStartMenuItem mi_mp_c2; 00063 GameStartMenuItem mi_mp_c3; 00064 GameStartMenuItem mi_mp_c4; 00065 }; 00066 00067 } 00068 00069 #endif /*TITLESCENE_H_*/
Generated at Mon Sep 6 00:41:13 2010 by Doxygen version 1.4.7 for Racer version svn335.