19 #ifndef HEADER_REFEREE_HPP 20 #define HEADER_REFEREE_HPP 22 #include <ISceneNode.h> 23 #include <IAnimatedMeshSceneNode.h> 24 #include <ISceneManager.h> 25 #include <IMeshManipulator.h> 28 #include "utils/vec3.hpp" 52 static video::ITexture *m_st_traffic_lights[3];
79 static float m_height;
84 scene::ISceneNode* m_light;
90 void selectReadySetGo(
int rsg);
91 void attachToSceneNode();
93 static void cleanup();
94 void removeFromSceneGraph();
97 scene::IAnimatedMeshSceneNode*
getSceneNode() {
return m_scene_node; }
109 bool isAttached()
const {
return m_scene_node->getParent()!=NULL;}
111 void setAnimationFrameWithCreatedTicks(
int created_ticks);
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:119
static int m_st_first_rescue_frame
Start frame of rescue animation.
Definition: referee.hpp:64
scene::IAnimatedMeshSceneNode * m_scene_node
The scene node for an instance of the referee.
Definition: referee.hpp:82
A wrapper around bullets btVector3 to include conventient conversion functions (e.g.
Definition: vec3.hpp:34
bool isAttached() const
Returns true if this referee is attached to the scene graph.
Definition: referee.hpp:109
static const Vec3 & getStartOffset()
Returns the graphical offset the referee should be drawn at at the start of a race.
Definition: referee.hpp:115
static Vec3 m_st_start_offset
The position the referee should be shown relative to the kart when starting the race.
Definition: referee.hpp:71
Definition: three_d_animation.hpp:32
static const float getHeight()
Returns the height of the referee.
Definition: referee.hpp:122
static int m_st_last_start_frame
End frame of start animation.
Definition: referee.hpp:61
static Vec3 m_st_start_rotation
A rotation to be applied to the referee before displaying it.
Definition: referee.hpp:77
static int m_st_last_rescue_frame
End frame of rescue animation.
Definition: referee.hpp:67
scene::IAnimatedMeshSceneNode * getSceneNode()
Returns the scene node of this referee.
Definition: referee.hpp:97
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:49
This implements the referee, a character that is displayed at the start of the race holding a 'ready-...
Definition: referee.hpp:44
const core::vector3df & toIrrVector() const
Converts a vec3 into an irrlicht vector (which is a simple type cast).
Definition: vec3.hpp:113
void setRotation(const Vec3 &hpr)
Sets the rotation of the scene node (in degrees).
Definition: referee.hpp:105
static Vec3 m_st_scale
Scaling to be applied to the referee.
Definition: referee.hpp:74
An abstract interface for the actual karts.
Definition: abstract_kart.hpp:61
void setPosition(const Vec3 &xyz)
Moves the referee to the specified position.
Definition: referee.hpp:100
static int m_st_first_start_frame
Start frame of start animation.
Definition: referee.hpp:58
static int m_st_traffic_buffer
Which mesh buffer to use to show the traffic light texture.
Definition: referee.hpp:55