21#ifndef HEADER_CAMERA_END_HPP
22#define HEADER_CAMERA_END_HPP
24#include "graphics/camera_normal.hpp"
26#include "utils/cpp2011.hpp"
47 typedef enum {EC_STATIC_FOLLOW_KART,
64 if(s==
"static_follow_kart")
65 m_type = EC_STATIC_FOLLOW_KART;
66 else if(s==
"ahead_of_kart")
67 m_type = EC_AHEAD_OF_KART;
70 Log::warn(
"Camera",
"Invalid camera type '%s' - camera is ignored.",
101 void handleEndCamera(
float dt);
110 virtual void update(
float dt) OVERRIDE;
An abstract interface for the actual karts.
Definition: abstract_kart.hpp:62
Handles the end race camera.
Definition: camera_end.hpp:34
static void clearEndCameras()
This function clears all end camera data structure.
Definition: camera_end.cpp:68
static void readEndCamera(const XMLNode &root)
Reads the information about the end camera.
Definition: camera_end.cpp:78
unsigned int m_next_end_camera
The next end camera to be activated.
Definition: camera_end.hpp:99
virtual void update(float dt) OVERRIDE
Called once per time frame to move the camera to the right position.
Definition: camera_end.cpp:105
unsigned int m_current_end_camera
Index of the current end camera.
Definition: camera_end.hpp:96
static AlignedArray< EndCameraInformation > m_end_cameras
List of all end camera information.
Definition: camera_end.hpp:93
Handles the normal racing camera.
Definition: camera_normal.hpp:33
This is the base class for all cameras.
Definition: camera.hpp:49
A wrapper around bullets btVector3 to include conventient conversion functions (e....
Definition: vec3.hpp:35
utility class used to parse XML files
Definition: xml_node.hpp:48
int get(const std::string &attribute, std::string *value) const
If 'attribute' was defined, set 'value' to the value of the attribute and return 1,...
Definition: xml_node.cpp:176