SuperTuxKart
Loading...
Searching...
No Matches
cutscene_general.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 CUTSCENE_GENERAL_HPP
20#define CUTSCENE_GENERAL_HPP
21
22#include "guiengine/screen.hpp"
23
29 public GUIEngine::ScreenSingleton<CutSceneGeneral>
30{
32
34
35public:
36
37 virtual void onCutsceneEnd() OVERRIDE {};
38
40 void onUpdate(float dt) OVERRIDE {};
41
43 virtual void loadedFromFile() OVERRIDE;
44
46 void init() OVERRIDE;
47
49 void tearDown() OVERRIDE;
50
51 void eventCallback(GUIEngine::Widget* widget, const std::string& name,
52 const int playerID) OVERRIDE;
53
55 virtual bool onEscapePressed() OVERRIDE;
56};
57
58#endif
Screen shown when a feature has been unlocked.
Definition: cutscene_general.hpp:30
void onUpdate(float dt) OVERRIDE
implement optional callback from parent class GUIEngine::Screen
Definition: cutscene_general.hpp:40
void init() OVERRIDE
implement callback from parent class GUIEngine::Screen
Definition: cutscene_general.cpp:34
void tearDown() OVERRIDE
implement callback from parent class GUIEngine::Screen
Definition: cutscene_general.cpp:40
virtual bool onEscapePressed() OVERRIDE
override from base class to handle escape press
Definition: cutscene_general.cpp:47
void eventCallback(GUIEngine::Widget *widget, const std::string &name, const int playerID) OVERRIDE
will be called everytime something happens.
Definition: cutscene_general.cpp:55
virtual void loadedFromFile() OVERRIDE
implement callback from parent class GUIEngine::Screen
Definition: cutscene_general.cpp:28
Definition: screen.hpp:344
Declares a class to be a singleton.
Definition: screen.hpp:59
Contains all GUI engine related classes and functions.
Definition: abstract_state_manager.hpp:33