|
|
virtual | ~RaceGUIBase () |
| | The destructor removes the marker texture and the referee scene node.
|
| |
|
virtual void | renderGlobal (float dt) |
| | Updates lightning related information.
|
| |
| virtual void | init () |
| | This is a second initialisation call (after the constructor) for the race gui. More...
|
| |
| virtual void | reset () |
| | This is called when restarting a race. More...
|
| |
|
virtual void | renderPlayerView (const Camera *camera, float dt) |
| |
| virtual void | addMessage (const irr::core::stringw &m, const AbstractKart *kart, float time, const video::SColor &color=video::SColor(255, 255, 0, 255), bool important=true, bool big_font=false, bool outline=false) |
| | Adds a message to the message queue. More...
|
| |
| virtual void | update (float dt) |
| | Update, called once per frame. More...
|
| |
| virtual void | preRenderCallback (const Camera *camera) |
| | This function is called just before rendering the view for each kart. More...
|
| |
|
virtual const core::dimension2du | getMiniMapSize () const =0 |
| | Returns the size of the texture on which to render the minimap to.
|
| |
|
virtual void | calculateMinimapSize () |
| |
|
virtual void | clearAllMessages () |
| |
|
void | drawGlobalPlayerIcons (int bottom_margin) |
| | Draw players icons and, depending on the current mode, their time or their score (battle lives, egg collected, etc.).
|
| |
|
void | drawPlayerIcon (AbstractKart *kart, int x, int y, int w, bool is_local) |
| | Draw one player icon Takes care of icon looking different due to plumber, squashing, ...
|
| |
|
virtual void | drawEnergyMeter (int x, int y, const AbstractKart *kart, const core::recti &viewport, const core::vector2df &scaling) |
| |
| void | cleanupMessages (const float dt) |
| | Removes messages which have been displayed long enough. More...
|
| |
|
void | removeReferee () |
| |
|
RaceGUIMultitouch * | getMultitouchGUI () |
| |
|
void | recreateGUI () |
| |
|
virtual void | initSize () |
| | Called when loading the race gui or screen resized.
|
| |
|
| void | createRegularPolygon (unsigned int n, float radius, const core::vector2df ¢er, const video::SColor &color, video::S3DVertex *v, unsigned short int *index) |
| | Creates the 2D vertices for a regular polygon. More...
|
| |
|
void | drawAllMessages (const AbstractKart *kart, const core::recti &viewport, const core::vector2df &scaling) |
| | Displays all messages in the message queue.
|
| |
| void | drawPowerupIcons (const AbstractKart *kart, const core::recti &viewport, const core::vector2df &scaling) |
| | Draws the powerup icons on the screen (called once for each player). More...
|
| |
| void | drawGlobalMusicDescription () |
| | Displays the description given for the music currently being played. More...
|
| |
|
void | drawGlobalReadySetGo () |
| | Draws the ready-set-go message on the screen.
|
| |
|
void | drawGlobalGoal () |
| |
| void | drawPlungerInFace (const Camera *camera, float dt) |
| | Draws the plunger-in-face if necessary. More...
|
| |
|
void | ignoreUnimportantMessages () |
| | Instructs the base gui to ignore unimportant messages (like item messages).
|
| |
|
|
bool | m_ignore_unimportant_messages |
| | True if unimportant messags (like item messages) should not be displayed.
|
| |
|
AllMessageType | m_messages |
| |
|
int | m_small_font_max_height |
| |
|
int | m_max_font_height |
| | Used to display messages without overlapping.
|
| |
|
video::ITexture * | m_music_icon |
| | Musical notes icon (for music description and credits)
|
| |
|
video::ITexture * | m_plunger_face |
| | Texture for the 'plunger in the face' texture.
|
| |
|
core::stringw | m_string_ready |
| | Translated strings 'ready', 'set', 'go'.
|
| |
|
core::stringw | m_string_set |
| |
|
core::stringw | m_string_go |
| |
|
core::stringw | m_string_goal |
| |
|
core::stringw | m_string_waiting_for_others |
| |
|
core::stringw | m_string_waiting_for_the_server |
| |
|
std::vector< Vec3 > | m_referee_pos |
| | The position of the referee for all karts.
|
| |
|
std::vector< Vec3 > | m_referee_rotation |
| | The actual rotation to use for the referee for each kart.
|
| |
| float | m_referee_height |
| | The height of the referee. More...
|
| |
|
Referee * | m_referee |
| | The referee scene node.
|
| |
|
bool | m_enabled_network_spectator |
| |
|
bool | m_showing_kart_colors |
| |
An abstract base class for the two race guis (race_gui and race_result gui)
| void RaceGUIBase::init |
( |
| ) |
|
|
virtual |
This is a second initialisation call (after the constructor) for the race gui.
This is called after the world has been initialised, e.g. all karts do exist (while the constructor is called before the karts are created). In the base gui this is used to initialise the referee data (which needs the start positions of the karts). Note that this function is (and must be called only once, after its constructor).
- Precondition
- All karts must be created, since this object defines the positions for the referees based on the karts.
Reimplemented in RaceResultGUI, and RaceGUI.