19#ifndef HEADER_REFEREE_HPP
20#define HEADER_REFEREE_HPP
26 class IAnimatedMesh;
class IAnimatedMeshSceneNode;
class ISceneNode;
36#include "utils/vec3.hpp"
87 static float m_height;
92 scene::ISceneNode* m_light;
An abstract interface for the actual karts.
Definition: abstract_kart.hpp:62
This implements the referee, a character that is displayed at the start of the race holding a 'ready-...
Definition: referee.hpp:53
static int m_st_traffic_buffer
Which mesh buffer to use to show the traffic light texture.
Definition: referee.hpp:63
void removeFromSceneGraph()
Removes the referee's scene node from the scene graph, but still keeps the scene node in memory.
Definition: referee.cpp:235
static const float getHeight()
Returns the height of the referee.
Definition: referee.hpp:124
void attachToSceneNode()
Make sure that this referee is attached to the scene graph.
Definition: referee.cpp:220
scene::IAnimatedMeshSceneNode * getSceneNode()
Returns the scene node of this referee.
Definition: referee.hpp:105
static const Vec3 & getStartRotation()
Returns the rotation of the mesh so that it faces the kart (when applied to a kart with heading 0).
Definition: referee.hpp:121
void setPosition(const Vec3 &xyz)
Moves the referee to the specified position.
Definition: referee.cpp:305
Referee()
Creates an instance of the referee, using the static values to initialise it.
Definition: referee.cpp:152
static int m_st_last_rescue_frame
End frame of rescue animation.
Definition: referee.hpp:75
static video::ITexture * m_st_traffic_lights[3]
The three textures to use for ready, set, go.
Definition: referee.hpp:60
static Vec3 m_st_start_rotation
A rotation to be applied to the referee before displaying it.
Definition: referee.hpp:85
static scene::IAnimatedMesh * m_st_referee_mesh
The static mesh, which is loaded from a static function and shared between all instances.
Definition: referee.hpp:57
static int m_st_first_rescue_frame
Start frame of rescue animation.
Definition: referee.hpp:72
static int m_st_last_start_frame
End frame of start animation.
Definition: referee.hpp:69
static int m_st_first_start_frame
Start frame of start animation.
Definition: referee.hpp:66
static const Vec3 & getStartOffset()
Returns the graphical offset the referee should be drawn at at the start of a race.
Definition: referee.hpp:117
static Vec3 m_st_scale
Scaling to be applied to the referee.
Definition: referee.hpp:82
void setAnimationFrameWithCreatedTicks(int created_ticks)
Set the referee animation frame with created ticks of RescueAnimation, so that it's synchronized with...
Definition: referee.cpp:292
void selectReadySetGo(int rsg)
Selects one of the states 'ready', 'set', or 'go' to be displayed by the referee.
Definition: referee.cpp:248
static Vec3 m_st_start_offset
The position the referee should be shown relative to the kart when starting the race.
Definition: referee.hpp:79
scene::IAnimatedMeshSceneNode * m_scene_node
The scene node for an instance of the referee.
Definition: referee.hpp:90
static void cleanup()
Frees the static mesh.
Definition: referee.cpp:141
bool isAttached() const
Returns true if this referee is attached to the scene graph.
Definition: referee.cpp:320
void setRotation(const Vec3 &hpr)
Sets the rotation of the scene node (in degrees).
Definition: referee.cpp:313
static void init()
Loads the static mesh.
Definition: referee.cpp:53
A wrapper around bullets btVector3 to include conventient conversion functions (e....
Definition: vec3.hpp:35