SuperTuxKart
Loading...
Searching...
No Matches
grand_prix_cutscene.hpp
1// SuperTuxKart - a fun racing game with go-kart
2// Copyright (C) 2014-2015 konstin
3//
4// This program is free software; you can redistribute it and/or
5// modify it under the terms of the GNU General Public License
6// as published by the Free Software Foundation; either version 3
7// of the License, or (at your option) any later version.
8//
9// This program is distributed in the hope that it will be useful,
10// but WITHOUT ANY WARRANTY; without even the implied warranty of
11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12// GNU General Public License for more details.
13//
14// You should have received a copy of the GNU General Public License
15// along with this program; if not, write to the Free Software
16// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17
18#ifndef HEADER_GRAND_PRIX_CUTSCENE_HPP
19#define HEADER_GRAND_PRIX_CUTSCENE_HPP
20
21#include "guiengine/screen.hpp"
22#include "guiengine/widgets/button_widget.hpp"
23#include "race/race_manager.hpp"
24
25#include <string>
26
28{
30public:
31 GrandPrixCutscene(const char * filename) : CutsceneScreen(filename) {}
32protected:
33 void saveGPButton();
34
35 void setNewGPWithName(const irr::core::stringw& name);
36
37 // implement callbacks from parent class GUIEngine::Screen
39 const std::string& name,
40 const int playerID) OVERRIDE;
41 bool onEscapePressed() OVERRIDE;
42 void tearDown() OVERRIDE;
43};
44
45#endif
Definition: screen.hpp:344
Declares a class to be a singleton.
Definition: screen.hpp:59
The nearly-abstract base of all widgets (not fully abstract since a bare Widget can be created for th...
Definition: widget.hpp:143
Definition: grand_prix_cutscene.hpp:28
void saveGPButton()
A Button to save the GP if it was a random GP.
Definition: grand_prix_cutscene.cpp:37
void setNewGPWithName(const irr::core::stringw &name)
Creates a new GP with the same content as the current and saves it The GP that the race_manager provi...
Definition: grand_prix_cutscene.cpp:49
bool onEscapePressed() OVERRIDE
Called when escape is pressed.
Definition: grand_prix_cutscene.cpp:85
void eventCallback(GUIEngine::Widget *widget, const std::string &name, const int playerID) OVERRIDE
will be called everytime something happens.
Definition: grand_prix_cutscene.cpp:67
void tearDown() OVERRIDE
Callback invoked before leaving this menu.
Definition: grand_prix_cutscene.cpp:93