20 #ifndef HEADER_RACE_GUI_HPP
21 #define HEADER_RACE_GUI_HPP
27 #include <irrString.h>
30 #include "states_screens/race_gui_base.hpp"
40 const int CHALLENGE_DISTANCE_SQUARED = 20;
42 const int CHALLENGE_HEIGHT = 4;
52 bool m_close_to_a_challenge;
56 video::ITexture* m_trophy[4];
57 video::ITexture *m_lock;
58 video::ITexture *m_open_challenge;
59 video::ITexture *m_locked_bonus;
62 video::ITexture* m_icons[7];
66 irr::video::ITexture *m_speed_bar_icon;
97 int m_trophy_points_width;
102 core::stringw m_challenge_description;
108 void drawGlobalMiniMap ();
114 virtual void renderGlobal(
float dt);
115 virtual void renderPlayerView(
const Camera *camera,
float dt);
122 return m_current_challenge;
128 {
return core::dimension2du(m_map_width, m_map_height); }
129 virtual void calculateMinimapSize();
130 virtual void initSize();
131 void drawTrophyPoints();
An abstract interface for the actual karts.
Definition: abstract_kart.hpp:62
This is the base class for all cameras.
Definition: camera.hpp:49
the description of one challenge
Definition: challenge_data.hpp:35
Definition: material.hpp:48
An abstract base class for the two race guis (race_gui and race_result gui)
Definition: race_gui_base.hpp:50
Handles the in-race GUI (messages, mini-map, rankings, timer, etc...)
Definition: race_gui_overworld.hpp:49
int m_map_rendered_height
The height of the rendered mini map in pixels, must be a power of 2.
Definition: race_gui_overworld.hpp:80
int m_map_left
Distance of map from left side of screen.
Definition: race_gui_overworld.hpp:89
bool m_is_minimap_initialized
True if the minimap is initialized.
Definition: race_gui_overworld.hpp:92
virtual const core::dimension2du getMiniMapSize() const
Returns the size of the texture on which to render the minimap to.
Definition: race_gui_overworld.hpp:127
int m_map_bottom
Distance of map from bottom of screen.
Definition: race_gui_overworld.hpp:95
const OverworldChallenge * m_current_challenge
The current challenge over which the mouse is hovering.
Definition: race_gui_overworld.hpp:105
const OverworldChallenge * getCurrentChallenge() const
Returns the currently selected challenge data (or NULL if no is selected).
Definition: race_gui_overworld.hpp:120
const ChallengeData * m_active_challenge
The latest challenge approached by the kart.
Definition: race_gui_overworld.hpp:100
int m_map_width
Width of the map in pixels on the screen, need not be a power of 2.
Definition: race_gui_overworld.hpp:83
int m_map_rendered_width
The width of the rendered mini map in pixels, must be a power of 2.
Definition: race_gui_overworld.hpp:77
int m_minimap_challenge_size
The size of a single marker on the screen for AI karts, need not be a power of 2.
Definition: race_gui_overworld.hpp:70
int m_map_height
Height of the map in pixels on the screen, need not be a power of 2.
Definition: race_gui_overworld.hpp:86
int m_minimap_player_size
The size of a single marker on the screen or player karts, need not be a power of 2.
Definition: race_gui_overworld.hpp:74
irr::video::ITexture * m_speed_meter_icon
Texture for speedometer.
Definition: race_gui_overworld.hpp:65