|
|
Track * | clone () |
| |
|
void | initChildTrack () |
| |
| void | handleAnimatedTextures (scene::ISceneNode *node, const XMLNode &xml) |
| | Handles animated textures. More...
|
| |
|
| Track (const std::string &filename) |
| |
|
| ~Track () |
| | Destructor, removes quad data structures etc.
|
| |
| void | cleanup () |
| | Removes the physical body from the world. More...
|
| |
| void | removeCachedData () |
| | Removes all cached data structures. More...
|
| |
|
void | startMusic () const |
| | Select and set the music for this track (doesn't actually start it yet).
|
| |
| void | createPhysicsModel (unsigned int main_track_count, bool for_height_map) |
| | Convert the track tree into its physics equivalents. More...
|
| |
| void | updateGraphics (float dt) |
| | This updates all only graphical elements. More...
|
| |
| void | update (int ticks) |
| | Update, called once per physics time step. More...
|
| |
| void | reset () |
| | Prepates the track for a new race. More...
|
| |
| void | itemCommand (const XMLNode *node) |
| | Handle creation and placement of an item. More...
|
| |
|
Vec3 | flagCommand (const XMLNode *node) |
| |
| core::stringw | getName () const |
| | Returns the name of the track, which is e.g. More...
|
| |
| core::stringw | getSortName () const |
| | Returns the name of the track used to sort the tracks alphabetically. More...
|
| |
| bool | isInGroup (const std::string &group_name) |
| | Returns true if this track belongs to the specified track group. More...
|
| |
|
const core::vector3df & | getSunRotation () |
| | Returns the rotation of the sun.
|
| |
|
void | setAmbientColor (const video::SColor &color, unsigned int k) |
| | Sets the current ambient color for a kart with index k.
|
| |
| void | handleExplosion (const Vec3 &pos, const PhysicalObject *mp, bool secondary_hits=true) const |
| | Handles an explosion, i.e. More...
|
| |
| void | loadTrackModel (bool reverse_track=false, unsigned int mode_id=0) |
| | This function load the actual scene, i.e. More...
|
| |
| bool | findGround (AbstractKart *kart) |
| | Determines if the kart is over ground. More...
|
| |
|
std::vector< std::vector< float > > | buildHeightMap () |
| |
|
void | drawMiniMap (const core::rect< s32 > &dest_rect) const |
| |
|
void | updateMiniMapScale () |
| |
|
bool | isArena () const |
| | Returns true if this track has an arena mode.
|
| |
|
bool | isCTF () const |
| |
| bool | isRaceTrack () const |
| | Returns true if this track is a racing track. More...
|
| |
|
bool | hasEasterEggs () const |
| | Returns true if this track has easter eggs.
|
| |
|
bool | reverseAvailable () const |
| | Returns true if this race can be driven in reverse.
|
| |
|
bool | hasNavMesh () const |
| | Returns true if this track navmesh.
|
| |
|
void | loadObjects (const XMLNode *root, const std::string &path, ModelDefinitionLoader &lod_loader, bool create_lod_definitions, scene::ISceneNode *parent, TrackObject *parent_library) |
| |
|
bool | isSoccer () const |
| |
|
void | addMusic (MusicInformation *mi) |
| |
|
float | getGravity () const |
| |
|
int | getVersion () const |
| | Returns the version of the .track file.
|
| |
|
float | getTrackLength () const |
| | Returns the length of the main driveline.
|
| |
|
const std::string & | getIdent () const |
| | Returns a unique identifier for this track (the directory name).
|
| |
|
const std::vector< std::string > & | getGroups () const |
| | Returns all groups this track belongs to.
|
| |
|
const std::string & | getFilename () const |
| | Returns the filename of this track.
|
| |
|
const core::stringw & | getDesigner () const |
| | Returns the name of the designer.
|
| |
|
const std::string & | getScreenshotFile () const |
| | Returns an absolute path to the screenshot file of this track.
|
| |
|
const bool | getIsDuringDay () const |
| | Returns if the track is during day time.
|
| |
|
const bool | getMinimapInvert () const |
| | Returns if invert minimap.
|
| |
| const btTransform & | getStartTransform (unsigned int index) const |
| | Returns the start coordinates for a kart with a given index. More...
|
| |
|
void | shuffleStartTransforms () |
| | Shuffles the start transformations.
|
| |
|
void | getAABB (const Vec3 **min, const Vec3 **max) const |
| | Sets pointer to the aabb of this track.
|
| |
| float | getAngle (int n) const |
| | Returns 'a' angle for quad n. More...
|
| |
| void | mapPoint2MiniMap (const Vec3 &xyz, Vec3 *draw_at) const |
| | Returns the 2d coordinates of a point when drawn on the mini map texture. More...
|
| |
|
std::string | getTrackFile (const std::string &s) const |
| | Returns the full path of a given file inside this track directory.
|
| |
|
unsigned int | getNumberOfModes () const |
| | Returns the number of modes available for this track.
|
| |
|
unsigned int | getNumOfCompletedChallenges () |
| | Returns number of completed challenges.
|
| |
| const std::string & | getModeName (unsigned int i) const |
| | Returns the name of the i-th. More...
|
| |
|
const video::SColor & | getDefaultAmbientColor () const |
| | Returns the default ambient color.
|
| |
|
float | getCameraFar () const |
| | Returns the far value for cameras.
|
| |
|
const TriangleMesh * | getPtrTriangleMesh () const |
| | Returns the triangle mesh for this track.
|
| |
|
const TriangleMesh & | getTriangleMesh () const |
| |
|
const TriangleMesh & | getGFXEffectMesh () const |
| | Returns the graphical effect mesh for this track.
|
| |
|
unsigned int | getMaxArenaPlayers () const |
| | Get the max players supported for this track, for arena only.
|
| |
|
unsigned int | getNumberOfStartPositions () const |
| | Get the number of start positions defined in the scene file.
|
| |
|
bool | getWeatherLightning () |
| |
|
const std::string & | getWeatherSound () |
| |
|
ParticleKind * | getSkyParticles () |
| |
|
void | forceFogDisabled (bool v) |
| | Override track fog value to force disabled.
|
| |
| bool | isFogEnabled () const |
| | Returns if fog is currently enabled. More...
|
| |
|
float | getFogStart () const |
| |
|
void | setFogStart (float start) |
| |
|
float | getFogEnd () const |
| |
|
void | setFogEnd (float end) |
| |
|
float | getFogStartHeight () const |
| |
|
float | getFogEndHeight () const |
| |
|
float | getFogMax () const |
| |
|
void | setFogMax (float max) |
| |
|
video::SColor | getFogColor () const |
| |
|
void | setFogColor (video::SColor &color) |
| |
|
video::SColor | getSunColor () const |
| |
| bool | isInternal () const |
| | Whether this is an "internal" track. More...
|
| |
|
bool | isAutoRescueEnabled () const |
| | Returns true if auto rescue is enabled.
|
| |
|
bool | isPushBackEnabled () const |
| | True if push back of karts towards the track should be enabled.
|
| |
|
bool | smoothNormals () const |
| | Returns true if the normals of this track can be smoothed.
|
| |
|
TrackObjectManager * | getTrackObjectManager () const |
| | Returns the track object manager.
|
| |
| const std::vector< OverworldChallenge > & | getChallengeList () const |
| | Get list of challenges placed on that world. More...
|
| |
|
const std::vector< Subtitle > & | getSubtitles () const |
| |
|
bool | hasBloom () const |
| |
|
float | getBloomThreshold () const |
| |
|
core::vector3df | getColorLevelIn () const |
| | Return the color levels for color correction shader.
|
| |
|
core::vector2df | getColorLevelOut () const |
| |
|
bool | hasGodRays () const |
| |
|
core::vector3df | getGodRaysPosition () const |
| |
|
float | getGodRaysOpacity () const |
| |
|
video::SColor | getGodRaysColor () const |
| |
|
bool | hasShadows () const |
| |
|
void | addNode (scene::ISceneNode *node) |
| |
|
void | addPhysicsOnlyNode (scene::ISceneNode *node) |
| |
|
float | getDisplacementSpeed () const |
| |
|
int | getPhysicalObjectUID () |
| |
|
const int | getDefaultNumberOfLaps () const |
| |
|
const int | getActualNumberOfLap () const |
| |
|
void | setActualNumberOfLaps (unsigned int laps) |
| |
| bool | operator< (const Track &other) const |
| | A < comparison of tracks. More...
|
| |
|
void | addCachedMesh (scene::IMesh *mesh) |
| | Adds mesh to cleanup list.
|
| |
|
void | addMetaLibrary (TrackObject *parent, TrackObject *meta_library) |
| | Adds the parent of the meta library for correction later.
|
| |
|
const btTransform & | getRedFlag () const |
| |
|
const btTransform & | getBlueFlag () const |
| |
|
bool | isAddon () const |
| |
| void | convertTrackToBullet (scene::ISceneNode *node, std::vector< std::array< btVector3, 3 > > *occluder=NULL) |
| | Convert the graphics track into its physics equivalents. More...
|
| |
|
CheckManager * | getCheckManager () const |
| |
|
ItemManager * | getItemManager () const |
| |
|
bool | isOnGround (const Vec3 &xyz, const Vec3 &down, Vec3 *hit_point, Vec3 *normal, bool print_warning=true) |
| |
|
MusicInformation * | getTrackMusic () const |
| |
|
|
float | m_gravity |
| |
|
float | m_friction |
| | Friction to be used for the track.
|
| |
|
std::string | m_ident |
| |
|
std::string | m_screenshot |
| |
|
bool | m_is_day |
| |
|
std::vector< MusicInformation * > | m_music |
| |
|
unsigned | m_music_idx |
| |
|
std::vector< OverworldChallenge > | m_challenges |
| | Will only be used on overworld.
|
| |
|
std::vector< Subtitle > | m_subtitles |
| |
|
AlignedArray< btTransform > | m_start_transforms |
| | Start transforms of karts (either the default, or the ones taken from the scene file).
|
| |
|
std::string | m_item_style |
| |
|
std::string | m_description |
| |
|
core::stringw | m_designer |
| |
|
bool | m_startup_run |
| |
|
std::string | m_filename |
| | The full filename of the config (xml) file.
|
| |
|
std::string | m_root |
| | The base dir of all files of this track.
|
| |
|
std::vector< std::string > | m_groups |
| |
|
std::vector< scene::ISceneNode * > | m_all_nodes |
| | The list of all nodes.
|
| |
| std::vector< scene::ISceneNode * > | m_static_physics_only_nodes |
| | The list of all nodes that are to be converted into physics, but not to be drawn (e.g. More...
|
| |
| std::vector< scene::ISceneNode * > | m_object_physics_only_nodes |
| | Same concept but for track objects. More...
|
| |
|
std::vector< scene::IMesh * > | m_all_cached_meshes |
| | The list of all meshes that are loaded from disk, which means that those meshes are being cached by irrlicht, and need to be freed.
|
| |
| std::vector< scene::IMesh * > | m_detached_cached_meshes |
| | m_all_cached_meshes assumes meshes are attached to a scene node. More...
|
| |
|
std::vector< video::ITexture * > | m_all_cached_textures |
| | A list of all textures loaded by the track, so that they can be removed from the cache at cleanup time.
|
| |
| bool | m_materials_loaded |
| | True if the materials.xml file is already loaded. More...
|
| |
| bool | m_cache_track |
| | True if this track (textures and track data) should be cached. More...
|
| |
|
scene::ISceneNode * | m_sun |
| |
|
TriangleMesh * | m_track_mesh |
| | Used to collect the triangles for the bullet mesh.
|
| |
|
TriangleMesh * | m_height_map_mesh |
| | Used to collect the triangles for the height map mesh used for particle rendering.
|
| |
| TriangleMesh * | m_gfx_effect_mesh |
| | Used to collect the triangles which do not have a physical representation, but are needed for some raycast effects. More...
|
| |
|
Vec3 | m_aabb_min |
| | Minimum coordinates of this track.
|
| |
|
Vec3 | m_aabb_max |
| | Maximum coordinates of this track.
|
| |
|
btTransform | m_red_flag |
| |
|
btTransform | m_blue_flag |
| |
|
bool | m_is_arena |
| | True if this track is an arena.
|
| |
|
bool | m_is_ctf |
| |
|
unsigned int | m_max_arena_players |
| | Max players supported by an arena.
|
| |
|
bool | m_has_easter_eggs |
| | True if this track has easter eggs.
|
| |
|
bool | m_has_navmesh |
| | True if this track has navmesh.
|
| |
|
bool | m_is_soccer |
| | True if this track is a soccer arena.
|
| |
|
bool | m_is_cutscene |
| |
| int | m_version |
| | The version of this track. More...
|
| |
|
float | m_camera_far |
| | Far value for cameras for this track.
|
| |
| bool | m_internal |
| | Whether this is an "internal" track. More...
|
| |
|
bool | m_reverse_available |
| | Whether this track should be available in reverse version.
|
| |
| bool | m_enable_auto_rescue |
| | If true a player kart will automatically be rescued if it is e.g. More...
|
| |
| bool | m_enable_push_back |
| | If true any collision of a kart with the track will push the kart towards the nearest driveline. More...
|
| |
|
enum Track:: { ... } | m_sky_type |
| | The type of sky to be used for the track.
|
| |
|
float | m_sky_dx |
| | sky rotation speed
|
| |
|
float | m_sky_dy |
| |
| std::vector< void * > | m_sky_textures |
| | A list of the textures for the sky to use. More...
|
| |
|
std::vector< void * > | m_spherical_harmonics_textures |
| |
|
irr::video::SColor | m_sky_color |
| | Used if m_sky_type is SKY_COLOR only.
|
| |
|
std::vector< MovingTexture * > | m_animated_textures |
| | The list of all animated textures.
|
| |
|
TrackObjectManager * | m_track_object_manager |
| | Manager for all track objects.
|
| |
|
int | m_sky_hori_segments |
| | If a sky dome is used, the number of horizontal segments the sphere should be divided in.
|
| |
|
int | m_sky_vert_segments |
| | If a sky dome is used, the number of vertical segments the sphere should be divided in.
|
| |
|
float | m_sky_sphere_percent |
| | If a sky dome is used, percentage of the sphere to be used.
|
| |
|
float | m_sky_texture_percent |
| | If a sky dome is used, percentage of the texture to be used.
|
| |
|
ParticleKind * | m_sky_particles |
| | Particles emitted from the sky (wheather)
|
| |
|
bool | m_weather_lightning |
| | Use a special built-in wheather.
|
| |
|
std::string | m_weather_sound |
| |
|
std::vector< TrackMode > | m_all_modes |
| | List of all modes for a track.
|
| |
|
std::string | m_name |
| | Name of the track to display.
|
| |
|
core::stringw | m_sort_name |
| | The name used in sorting the track.
|
| |
|
bool | m_use_fog |
| | True if the track uses fog.
|
| |
| bool | m_force_disable_fog |
| | Can be set to force fog off (e.g. More...
|
| |
|
bool | m_smooth_normals |
| | True if this track supports using smoothed normals.
|
| |
|
bool | m_is_addon |
| |
|
float | m_fog_max |
| |
|
float | m_fog_start |
| |
|
float | m_fog_end |
| |
|
float | m_fog_height_start |
| |
|
float | m_fog_height_end |
| |
|
core::vector3df | m_sun_position |
| |
|
video::SColor | m_ambient_color |
| | The current ambient color for each kart.
|
| |
|
video::SColor | m_default_ambient_color |
| |
|
video::SColor | m_sun_specular_color |
| |
|
video::SColor | m_sun_diffuse_color |
| |
|
video::SColor | m_fog_color |
| |
|
RenderTarget * | m_render_target |
| | The render target for the mini map, which is displayed in the race gui.
|
| |
|
CheckManager * | m_check_manager |
| |
|
std::shared_ptr< ItemManager > | m_item_manager |
| |
|
float | m_minimap_x_scale |
| |
|
float | m_minimap_y_scale |
| |
|
bool | m_bloom |
| |
|
float | m_bloom_threshold |
| |
|
bool | m_godrays |
| |
|
core::vector3df | m_godrays_position |
| |
|
float | m_godrays_opacity |
| |
|
video::SColor | m_godrays_color |
| |
|
bool | m_shadows |
| |
|
float | m_displacement_speed |
| |
|
int | m_physical_object_uid |
| |
|
bool | m_minimap_invert_x_z |
| |
|
core::vector3df | m_color_inlevel |
| | The levels for color correction m_color_inlevel(black, gamma, white) m_color_outlevel(black, white)
|
| |
|
core::vector2df | m_color_outlevel |
| |
| std::vector< BezierCurve * > | m_all_curves |
| | List of all bezier curves in the track - for e.g. More...
|
| |
|
std::vector< std::pair< TrackObject *, TrackObject * > > | m_meta_library |
| |
| int | m_default_number_of_laps |
| | The number of laps the track will be raced in a random GP. More...
|
| |
|
int | m_actual_number_of_laps |
| | The number of laps that is predefined in a track info dialog.
|
| |