|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.ctdp.rfdynhud.gamedata.ProfileInfo
public abstract class ProfileInfo
Model of the current player's profile information
Nested Class Summary | |
---|---|
static class |
ProfileInfo.MeasurementUnits
Model of measurement units (everything but speed) |
static class |
ProfileInfo.SpeedUnits
Model of speed units |
Field Summary | |
---|---|
protected java.lang.Integer |
aiControlsDriver
|
protected java.lang.String |
birthDate
|
protected java.lang.Float |
driverHotswapDelay
|
protected java.lang.String |
helmet
|
protected java.lang.String |
location
|
protected ProfileInfo.MeasurementUnits |
measurementUnits
|
protected java.lang.String |
modName
|
protected java.lang.Float |
multiRaceLength
|
protected java.lang.String |
nationality
|
protected java.lang.Integer |
numReconLaps
|
protected java.lang.String |
raceCastEmail
|
protected java.lang.String |
raceCastPassword
|
protected java.lang.Boolean |
showCurrentLap
|
protected ProfileInfo.SpeedUnits |
speedUnits
|
protected java.lang.Integer |
startingDriver
|
protected java.lang.String |
teamName
|
protected java.lang.Integer |
uniqueID
|
protected java.io.File |
vehFile
|
Constructor Summary | |
---|---|
protected |
ProfileInfo()
Create a new instance. |
Method Summary | |
---|---|
java.lang.Integer |
getAIControlsDriver()
Bitfield defining which drivers the AI controls (0=none, 1=driver1, 2=driver2, 3=driver1+driver2, etc.) |
java.lang.String |
getBirthDate()
Gets the player's birth date. |
java.io.File |
getCCHFile()
Gets the currently used CCH file. |
protected abstract java.io.File |
getCCHFileImpl(java.lang.String modName)
Gets the currently used CCH file. |
java.lang.Float |
getDriverHotswapDelay()
Delay in seconds between switching controls to AI or remote driver. |
abstract java.lang.Boolean |
getFormationLap()
Drive formation lap? |
java.lang.String |
getHelmet()
Gets the player's helmet. |
protected abstract java.io.File |
getLastUsedSceneFile()
Gets the last used scene file. |
java.lang.String |
getLocation()
Gets the player's location. |
ProfileInfo.MeasurementUnits |
getMeasurementUnits()
Gets the selected measurement units. |
java.lang.String |
getNationality()
Gets the player's nationality. |
java.lang.Integer |
getNumReconLaps()
Gets the number of configureed recon laps. |
abstract java.io.File |
getPLRFile()
Gets the used PLR file. |
abstract java.io.File |
getProfileFolder()
Gets the folder, where rFactor stores profiles. |
java.lang.String |
getRaceCastEmail()
Gets the email you are registered with on racecast.rfactor.net |
java.lang.String |
getRaceCastPassword()
Gets your password on racecast.rfactor.net |
java.lang.Float |
getRaceLengthMultiplier()
Gets the current race length fraction. |
java.lang.Boolean |
getShowCurrentLap()
Gets whether the current lap is to be displayed or the number of laps completed. |
ProfileInfo.SpeedUnits |
getSpeedUnits()
Gets the selected speed units. |
java.lang.Integer |
getStartingDriver()
Zero-based index of starting driver (0=driver1, 1=driver2, 2=driver3, etc.) |
java.lang.String |
getTeamName()
Gets the currently used team's name. |
java.lang.Integer |
getUniqueID()
Helps to uniquely identify in multiplayer (along with name) if leaving and coming back |
long |
getUpdateId()
This is incremented every time the info is updated. |
java.io.File |
getVehicleFile()
Gets the currently used vehicle file. |
abstract boolean |
isValid()
Gets whether this information in this instance is valid for the current session. |
protected void |
reset()
|
boolean |
update()
Updates the information from the game. |
protected abstract boolean |
updateImpl()
Updates the information from the game. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String raceCastEmail
protected java.lang.String raceCastPassword
protected java.io.File vehFile
protected java.lang.String teamName
protected java.lang.String nationality
protected java.lang.String birthDate
protected java.lang.String location
protected java.lang.String modName
protected java.lang.String helmet
protected java.lang.Integer uniqueID
protected java.lang.Integer startingDriver
protected java.lang.Integer aiControlsDriver
protected java.lang.Float driverHotswapDelay
protected java.lang.Float multiRaceLength
protected java.lang.Boolean showCurrentLap
protected java.lang.Integer numReconLaps
protected ProfileInfo.MeasurementUnits measurementUnits
protected ProfileInfo.SpeedUnits speedUnits
Constructor Detail |
---|
protected ProfileInfo()
Method Detail |
---|
public abstract boolean isValid()
protected void reset()
protected abstract boolean updateImpl()
public final boolean update()
public final long getUpdateId()
public abstract java.io.File getProfileFolder()
public abstract java.io.File getPLRFile()
public final java.lang.String getRaceCastEmail()
public final java.lang.String getRaceCastPassword()
public final java.io.File getVehicleFile()
public final java.lang.String getTeamName()
public final java.lang.String getNationality()
public final java.lang.String getBirthDate()
public final java.lang.String getLocation()
public final java.lang.String getHelmet()
public final java.lang.Integer getUniqueID()
public final java.lang.Integer getStartingDriver()
public final java.lang.Integer getAIControlsDriver()
public final java.lang.Float getDriverHotswapDelay()
protected abstract java.io.File getLastUsedSceneFile()
public final java.lang.Float getRaceLengthMultiplier()
public final java.lang.Boolean getShowCurrentLap()
public final java.lang.Integer getNumReconLaps()
public abstract java.lang.Boolean getFormationLap()
public final ProfileInfo.MeasurementUnits getMeasurementUnits()
getSpeedUnits()
public final ProfileInfo.SpeedUnits getSpeedUnits()
getMeasurementUnits()
protected abstract java.io.File getCCHFileImpl(java.lang.String modName)
modName
-
public final java.io.File getCCHFile()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |