|
| TrackManager () |
| Constructor (currently empty).
|
|
| ~TrackManager () |
| Delete all tracks.
|
|
std::vector< std::string > | getAllTrackIdentifiers () |
| Returns a list of all track identifiers.
|
|
void | loadTrackList () |
| Load all .track files from all directories.
|
|
void | removeTrack (const std::string &ident) |
| Removes a track.
|
|
bool | loadTrack (const std::string &dirname) |
| Tries to load a track from a single directory.
|
|
void | removeAllCachedData () |
| Removes all cached data from all tracks.
|
|
int | getNumberOfRaceTracks () const |
| Returns the number of racing tracks.
|
|
Track * | getTrack (const std::string &ident) const |
| Get TrackData by the track identifier.
|
|
void | setUnavailableTracks (const std::vector< std::string > &tracks) |
| Sets a list of track as being unavailable (e.g.
|
|
const std::vector< std::string > * | getAllTrackDirs () const |
| Returns a list of all directories that contain a track.
|
|
const std::vector< std::string > & | getAllTrackGroups () const |
| Returns a list of the names of all used track groups.
|
|
const std::vector< std::string > & | getAllArenaGroups (bool soccer_arena=false) const |
| Returns a list of the names of all used arena groups.
|
|
size_t | getNumberOfTracks () const |
| Returns the number of tracks.
|
|
Track * | getTrack (unsigned int index) const |
| Returns the track with a given index number.
|
|
int | getTrackIndexByIdent (const std::string &ident) const |
|
bool | isAvailable (unsigned int n) const |
| Checks if a certain track is available.
|
|
const std::vector< int > & | getTracksInGroup (const std::string &g) |
| Returns a list of all tracks in a given group.
|
|
const std::vector< int > & | getArenasInGroup (const std::string &g, bool soccer_arena=false) |
| Returns a list of all arenas in a given group.
|
|
void | onDemandLoadTrackScreenshots () |
|
void | updateScreenshotCache () |
|
|
std::vector< std::string > | m_all_track_dirs |
| All directories in which tracks were found.
|
|
Tracks | m_tracks |
| All track objects.
|
|
Group2Indices | m_track_groups |
| List of all racing track groups.
|
|
Group2Indices | m_arena_groups |
| List of all arena groups.
|
|
Group2Indices | m_soccer_arena_groups |
| List of all soccer arena groups.
|
|
std::vector< std::string > | m_track_group_names |
| List of the names of all groups containing tracks.
|
|
std::vector< std::string > | m_arena_group_names |
| List of the names of all groups containing arenas.
|
|
std::vector< std::string > | m_soccer_arena_group_names |
| List of the names of all groups containing soccer arenas.
|
|
std::vector< bool > | m_track_avail |
| Flag if this track is available or not.
|
|
Simple class to load and manage track data, track names and such.
void TrackManager::setUnavailableTracks |
( |
const std::vector< std::string > & |
tracks | ) |
|
Sets a list of track as being unavailable (e.g.
Sets all tracks that are not in the list a to be unavailable.
in network mode the track is not on all connected machines.
- Parameters
-
tracks | List of tracks to mark as unavilable. |
This is used by the network manager upon receiving the list of available tracks from a client.
- Parameters
-
tracks | List of all track identifiere (available on a client). |