SuperTuxKart
Loading...
Searching...
No Matches
cutscene_gui.hpp
1//
2// SuperTuxKart - a fun racing game with go-kart
3// Copyright (C) 2012-2015 Marianne Gagnon
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_RACE_GUI_HPP
20#define HEADER_RACE_GUI_HPP
21
22#include <string>
23#include <vector>
24
25#include <irrString.h>
26using namespace irr;
27
28#include "states_screens/race_gui_base.hpp"
29#include "utils/cpp2011.hpp"
30
31class AbstractKart;
32class InputMap;
33class Material;
34class RaceSetup;
35
41{
42private:
43
44 float m_fade_level;
45 core::stringw m_subtitle;
46
47public:
48
51
52 void setFadeLevel(float level) { m_fade_level = level; }
53 void setSubtitle(const core::stringw& subtitle) { m_subtitle = subtitle; }
54
55 virtual void renderGlobal(float dt) OVERRIDE;
56 virtual void renderPlayerView(const Camera *camera, float dt) OVERRIDE {}
57
58 virtual const core::dimension2du getMiniMapSize() const OVERRIDE
59 {
60 return core::dimension2du(1,1);
61 }
62}; // RaceGUI
63
64#endif
An abstract interface for the actual karts.
Definition: abstract_kart.hpp:62
This is the base class for all cameras.
Definition: camera.hpp:49
Handles the overlay for cutscenes.
Definition: cutscene_gui.hpp:41
virtual const core::dimension2du getMiniMapSize() const OVERRIDE
Returns the size of the texture on which to render the minimap to.
Definition: cutscene_gui.hpp:58
virtual void renderGlobal(float dt) OVERRIDE
Updates lightning related information.
Definition: cutscene_gui.cpp:41
Definition: material.hpp:48
An abstract base class for the two race guis (race_gui and race_result gui)
Definition: race_gui_base.hpp:50