net.ctdp.rfdynhud.gamedata
Class TrackInfo

java.lang.Object
  extended by net.ctdp.rfdynhud.gamedata.TrackInfo

public class TrackInfo
extends java.lang.Object

Model of the currently used track

Author:
Marvin Froehlich

Constructor Summary
TrackInfo(ProfileInfo profileInfo)
          Create a new instance.
 
Method Summary
 java.io.File getAIWFile()
           Finds the AIW file for the given track.
 int getRaceLaps()
          Gets last read track race laps.
 java.io.File getSceneFile()
          Gets the track's scene file.
 Track getTrack()
           Gets the track abstraction (waypoints) of the current track.
 java.io.File getTrackFolder()
          Gets the track's folder.
 java.lang.String getTrackName()
          Gets the track's name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TrackInfo

public TrackInfo(ProfileInfo profileInfo)
Create a new instance.

Parameters:
profileInfo -
Method Detail

getTrackFolder

public final java.io.File getTrackFolder()
Gets the track's folder.

Returns:
the track's folder.

getSceneFile

public final java.io.File getSceneFile()
Gets the track's scene file.

Returns:
the track's scene file.

getTrackName

public final java.lang.String getTrackName()
Gets the track's name.

Returns:
the track's name.

getRaceLaps

public final int getRaceLaps()
Gets last read track race laps.

Returns:
last read track race laps.

getAIWFile

public java.io.File getAIWFile()

Finds the AIW file for the given track.

WARNING:
This operation may take a long time.

Returns:
the AIW file for the given track.

getTrack

public final Track getTrack()

Gets the track abstraction (waypoints) of the current track.

WARNING:
This operation may take a long time.

Returns:
the track abstraction (waypoints) of the current track.