19#ifndef CUTSCENE_WORLD_HPP
20#define CUTSCENE_WORLD_HPP
22#include "modes/world_with_rank.hpp"
23#include "states_screens/race_gui_base.hpp"
27 namespace scene {
class ICameraSceneNode; }
41 irr::scene::ICameraSceneNode* m_camera;
43 std::map<float, std::vector<TrackObject*> > m_sounds_to_trigger;
44 std::map<float, std::vector<TrackObject*> > m_sounds_to_stop;
45 std::map<float, std::vector<TrackObject*> > m_particles_to_trigger;
49 bool m_cleared_cutscene;
51 float m_fade_duration;
54 static bool s_use_duration;
60 double m_time_at_second_reset;
62 std::vector<std::string> m_parts;
70 virtual void init() OVERRIDE;
72 virtual
void reset(
bool restart=false) OVERRIDE;
77 virtual const std::
string&
getIdent() const OVERRIDE;
79 virtual
void update(
int ticks) OVERRIDE;
81 virtual
void createRaceGUI() OVERRIDE;
100 return btTransform();
105 void setParts(std::vector<std::string> parts) { m_parts = parts; }
110 std::vector<RaceGUIBase::KartIconDisplayInfo> *info) OVERRIDE
114 virtual void escapePressed() OVERRIDE { abortCutscene(); }
116 static void setUseDuration(
bool use_duration) { s_use_duration = use_duration; }
118 void abortCutscene() { m_aborted =
true; }
An abstract interface for the actual karts.
Definition: abstract_kart.hpp:62
This is the base class for kart controller - that can be a player or a a robot.
Definition: controller.hpp:46
An implementation of World, to provide animated 3D cutscenes.
Definition: cutscene_world.hpp:40
virtual void update(int ticks) OVERRIDE
Update the world and the track.
Definition: cutscene_world.cpp:201
virtual const std::string & getIdent() const OVERRIDE
Returns the internal identifier for this race.
Definition: cutscene_world.cpp:192
virtual void getKartsDisplayInfo(std::vector< RaceGUIBase::KartIconDisplayInfo > *info) OVERRIDE
Returns the data to display in the race gui.
Definition: cutscene_world.hpp:109
bool m_second_reset
monkey tricks to get the animations in sync with irrlicht.
Definition: cutscene_world.hpp:59
virtual void init() OVERRIDE
Initialises the three strikes battle.
Definition: cutscene_world.cpp:76
virtual bool isRaceOver() OVERRIDE
The battle is over if only one kart is left, or no player kart.
Definition: cutscene_world.cpp:632
virtual void onFirePressed(Controller *who) OVERRIDE
Override if you want to know when a kart presses fire.
Definition: cutscene_world.hpp:103
virtual void enterRaceOverState() OVERRIDE
Called when the race is finished, but it still leaves some time for an end of race animation,...
Definition: cutscene_world.cpp:429
virtual unsigned int getNumberOfRescuePositions() const OVERRIDE
Returns the number of rescue positions on a given track and game mode.
Definition: cutscene_world.hpp:88
virtual bool raceHasLaps() OVERRIDE
Called when it is needed to know whether this kind of race involves counting laps.
Definition: cutscene_world.hpp:86
virtual btTransform getRescueTransform(unsigned int index) const OVERRIDE
Returns the bullet transformation for the specified rescue index.
Definition: cutscene_world.hpp:98
CutsceneWorld()
Constructor.
Definition: cutscene_world.cpp:58
virtual unsigned int getRescuePositionIndex(AbstractKart *kart) OVERRIDE
Determines the rescue position index of the specified kart.
Definition: cutscene_world.hpp:93
virtual ~CutsceneWorld()
Destructor.
Definition: cutscene_world.cpp:178
virtual void reset(bool restart=false) OVERRIDE
This function is called before a race is started (i.e.
Definition: cutscene_world.cpp:184
This is a base object for any separate object on the track, which might also have a skeletal animatio...
Definition: track_object.hpp:56
base class for all game modes This class is responsible for running the actual race.
Definition: world.hpp:88