SuperTuxKart
Loading...
Searching...
No Matches
grand_prix_lose.hpp
1//
2// SuperTuxKart - a fun racing game with go-kart
3// Copyright (C) 2010-2015 SuperTuxKart-Team
4//
5// This program is free software; you can redistribute it and/or
6// modify it under the terms of the GNU General Public License
7// as published by the Free Software Foundation; either version 3
8// of the License, or (at your option) any later version.
9//
10// This program is distributed in the hope that it will be useful,
11// but WITHOUT ANY WARRANTY; without even the implied warranty of
12// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13// GNU General Public License for more details.
14//
15// You should have received a copy of the GNU General Public License
16// along with this program; if not, write to the Free Software
17// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18
19#ifndef HEADER_GRAND_PRIX_LOSE_HPP
20#define HEADER_GRAND_PRIX_LOSE_HPP
21
22#include "guiengine/screen.hpp"
23#include "states_screens/grand_prix_cutscene.hpp"
24
25#include <string>
26#include <utility>
27#include <vector>
28
29namespace irr { namespace scene { class ISceneNode; class ICameraSceneNode; class ILightSceneNode; class IMeshSceneNode; } }
30class KartModel;
31class KartProperties;
32class TrackObject;
33
39 public GrandPrixCutscene,
40 public GUIEngine::ScreenSingleton<GrandPrixLose>
41{
43
44 GrandPrixLose(): GrandPrixCutscene("grand_prix_lose.stkgui") {};
45
48
49 TrackObject* m_kart_node[4];
50
52 std::vector<KartModel*> m_all_kart_models;
53
54 int m_phase;
55
56 float m_kart_x, m_kart_y, m_kart_z;
57
58public:
59 // implement callbacks from parent class GUIEngine::Screen
60 void init() OVERRIDE;
61 void loadedFromFile() OVERRIDE;
62 void onCutsceneEnd() OVERRIDE;
63 void onUpdate(float dt) OVERRIDE;
65 void setKarts(std::vector<std::pair<std::string, float> > ident);
66 MusicInformation* getInGameMenuMusic() const OVERRIDE;
67};
68
69#endif
70
Declares a class to be a singleton.
Definition: screen.hpp:59
Definition: grand_prix_cutscene.hpp:28
Screen shown at the end of a Grand Prix.
Definition: grand_prix_lose.hpp:41
std::vector< KartModel * > m_all_kart_models
A copy of the kart model for each kart used.
Definition: grand_prix_lose.hpp:52
void setKarts(std::vector< std::pair< std::string, float > > ident)
set which karts lost this GP
Definition: grand_prix_lose.cpp:165
void onUpdate(float dt) OVERRIDE
optional callback you can override to be notified at every frame.
Definition: grand_prix_lose.cpp:126
void init() OVERRIDE
Callback invoked when entering this menu (after the widgets have been added).
Definition: grand_prix_lose.cpp:105
float m_global_time
Global evolution of time.
Definition: grand_prix_lose.hpp:47
void loadedFromFile() OVERRIDE
Callback invoked when loading this menu.
Definition: grand_prix_lose.cpp:95
MusicInformation * getInGameMenuMusic() const OVERRIDE
Definition: grand_prix_lose.cpp:239
This class stores a 3D kart model.
Definition: kart_model.hpp:168
This class stores the properties of a kart.
Definition: kart_properties.hpp:60
Wrapper around an instance of the Music interface Adds information like composer, song title,...
Definition: music_information.hpp:43
This is a base object for any separate object on the track, which might also have a skeletal animatio...
Definition: track_object.hpp:56