|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.ctdp.rfdynhud.gamedata.ScoringInfo
public class ScoringInfo
Nested Class Summary | |
---|---|
static interface |
ScoringInfo.ScoringInfoUpdateListener
|
Method Summary | |
---|---|
float |
getAmbientTemperature()
Gets ambient temperature (PLR selected units) |
float |
getAmbientTemperatureC()
Gets ambient temperature (Celsius) |
float |
getAmbientTemperatureF()
Gets ambient temperature (Fahrenheit) |
float |
getAmbientTemperatureK()
Gets ambient temperature (Celsius) |
float |
getCloudDarkness()
Gets cloud darkness? |
VehicleScoringInfo |
getCompareVSI()
Gets the VehicleScoringInfo to compare against. |
float |
getEndTime()
Gets session ending time. |
int |
getEstimatedMaxLaps(VehicleScoringInfo vsi)
Gets the estimated max laps based on the session end time and average lap time. |
long |
getExtrapolationNanos()
Returns the nano seconds since the last ScoringInfo update. |
float |
getExtrapolationTime()
Returns the seconds since the last ScoringInfo update. |
Laptime |
getFastestLaptime()
Gets the absolute fastes lap time. |
VehicleScoringInfo |
getFastestLapVSI()
Gets the VehicleScoringInfo for the fastest lap. |
VehicleScoringInfo |
getFastestSector1VSI()
Gets the VehicleScoringInfo for the fastest sector1. |
VehicleScoringInfo |
getFastestSector2VSI()
Gets the VehicleScoringInfo for the fastest sector2. |
VehicleScoringInfo |
getFastestSector3VSI()
Gets the VehicleScoringInfo for the fastest sector3. |
VehicleScoringInfo |
getFastestSectorVSI(int sector)
Gets the VehicleScoringInfo for the fastest sector i. |
GamePhase |
getGamePhase()
Gets the current game phase. |
VehicleScoringInfo |
getLeadersVehicleScoringInfo()
Gets the leader's VehicleScoringInfo . |
int |
getMaxLaps()
Gets maximum laps. |
int |
getNumRedLights()
Gets the number of red lights in start sequence. |
int |
getNumVehicles()
Gets the current number of vehicles. |
int |
getNumVehiclesInSameClass(VehicleScoringInfo vsi)
Gets the number of vehicles in the same vehicle class as the given one. |
float |
getOffPathWetness()
Gets wetness off main path 0.0-1.0 |
float |
getOnPathWetness()
Gets wetness on main path 0.0-1.0 |
short |
getOwnPlace(boolean byClass)
Gets the position of the player. |
java.lang.String |
getPlayerFilename()
Gets the player's filename (PLR) (may be encoded to be a legal filename). |
java.lang.String |
getPlayerName()
Gets the player name (including possible multiplayer override). |
VehicleScoringInfo |
getPlayersVehicleScoringInfo()
Gets the player's VehicleScroingInfo. |
double |
getRaceLengthPercentage()
Gets a multiplier in range [0, 1] for the race distance. |
float |
getRainingSeverity()
Gets raining severity 0.0-1.0 |
long |
getRealtimeEnteredTimestamp()
Gets the system timestamp in nanoseconds, at which the player entered realtime mode. |
int |
getRealtimeEntredId()
This ID is incremented each time, the player enters realtime mode. |
VehicleScoringInfo |
getSecondFastestLapVSI()
Gets the VehicleScoringInfo for the second fastest lap (or null ). |
boolean |
getSectorYellowFlag(int sector)
Gets whether there are any local yellows at the moment in the sector. |
int |
getSessionId()
This Session ID is incremented every time, a new session is started. |
long |
getSessionNanos()
Gets the nano seconds, the current session is running. |
long |
getSessionStartTimestamp()
Gets the system timestamp in nanoseconds, at which the current session was started. |
float |
getSessionTime()
Gets current session time. |
SessionType |
getSessionType()
Gets current session type. |
int |
getStartLightFrame()
Gets the current start light frame (number depends on track). |
ThreeLetterCodeGenerator |
getThreeLetterCodeGenerator()
Gets the generator to use to generate three-letter-codes and short forms from driver names. |
float |
getTrackLength()
Gets the distance around track. |
java.lang.String |
getTrackName()
Gets the current track name. |
float |
getTrackTemperature()
Gets track temperature (PLR selected units) |
float |
getTrackTemperatureC()
Gets track temperature (Celsius) |
float |
getTrackTemperatureF()
Gets track temperature (Fahrenheit) |
float |
getTrackTemperatureK()
Gets track temperature (Celsius) |
long |
getUpdateId()
Gets an ID, that in incremented every time, this ScoringInfo object is filled with new data from the game. |
VehicleScoringInfo |
getVehicleScoringInfo(int i)
Gets the i-th vehicle scoring info. |
int |
getVehicleScoringInfos(VehicleScoringInfo[] vsis)
Gets all the current VehicleScoringInfo s and writes them into the given array. |
VehicleScoringInfo |
getViewedVehicleScoringInfo()
Gets the viewed's VehicleScroingInfo (this is just a guess, but should be correct). |
void |
getWindSpeed(TelemVect3 speed)
Gets wind speed in km/h or mph depending on PLR settings. |
void |
getWindSpeedKph(TelemVect3 speed)
Gets wind speed in km/h. |
void |
getWindSpeedMph(TelemVect3 speed)
Gets wind speed in mi/h. |
void |
getWindSpeedMS(TelemVect3 speed)
Gets wind speed in m/sec. |
YellowFlagState |
getYellowFlagState()
Gets the current yellow flag state (applies to full-course only). |
boolean |
isInRealtimeMode()
Gets whether we're in realtime as opposed to at the monitor. |
boolean |
isSessionRunning()
Gets whether a session is currently running or not. |
boolean |
isUpdatedInTimeScope()
Gets, whether the last update of these data has been done while in running session resp. realtime mode. |
boolean |
isValid()
Gets whether this data has been updated in the current session. |
void |
readFromStream(java.io.InputStream in)
|
void |
registerListener(ScoringInfo.ScoringInfoUpdateListener l)
|
void |
setThreeLetterCodeGenerator(ThreeLetterCodeGenerator tlcGenerator)
Sets the generator to use to generate three-letter-codes and short forms from driver names. |
void |
unregisterListener(ScoringInfo.ScoringInfoUpdateListener l)
|
void |
writeToStream(java.io.OutputStream out)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void registerListener(ScoringInfo.ScoringInfoUpdateListener l)
public void unregisterListener(ScoringInfo.ScoringInfoUpdateListener l)
public void setThreeLetterCodeGenerator(ThreeLetterCodeGenerator tlcGenerator)
tlcGenerator
- public final ThreeLetterCodeGenerator getThreeLetterCodeGenerator()
public final boolean isSessionRunning()
public final long getSessionStartTimestamp()
public final long getRealtimeEnteredTimestamp()
public final int getRealtimeEntredId()
public final boolean isUpdatedInTimeScope()
public final boolean isValid()
public final long getUpdateId()
ScoringInfo
object is filled with new data from the game.
ScoringInfo
object is filled with new data from the game.public final int getSessionId()
public void readFromStream(java.io.InputStream in) throws java.io.IOException
java.io.IOException
public void writeToStream(java.io.OutputStream out) throws java.io.IOException
java.io.IOException
public final double getRaceLengthPercentage()
public final java.lang.String getTrackName()
public final SessionType getSessionType()
public final long getSessionNanos()
public final long getExtrapolationNanos()
public final float getExtrapolationTime()
public final float getSessionTime()
public final float getEndTime()
public final int getMaxLaps()
public final int getEstimatedMaxLaps(VehicleScoringInfo vsi)
SessionLimit
is defined to be LAPS, then max laps is known and returned.
If the current session is a race, the estimated max laps of the leader are returned.
vsi
- the vehicle (should be the leader)
public final float getTrackLength()
public final int getNumVehicles()
public final int getNumVehiclesInSameClass(VehicleScoringInfo vsi)
vsi
- the vehicle
public final GamePhase getGamePhase()
public final YellowFlagState getYellowFlagState()
public final boolean getSectorYellowFlag(int sector)
sector
- the queried sector (1,2,3)
public final int getStartLightFrame()
public final int getNumRedLights()
public final boolean isInRealtimeMode()
public final java.lang.String getPlayerName()
public final java.lang.String getPlayerFilename()
public final float getCloudDarkness()
public final float getRainingSeverity()
public final float getAmbientTemperatureK()
public final float getAmbientTemperatureC()
public final float getAmbientTemperatureF()
public final float getAmbientTemperature()
public final float getTrackTemperatureK()
public final float getTrackTemperatureC()
public final float getTrackTemperatureF()
public final float getTrackTemperature()
public final void getWindSpeedMS(TelemVect3 speed)
speed
- output bufferpublic final void getWindSpeedKph(TelemVect3 speed)
speed
- output bufferpublic final void getWindSpeedMph(TelemVect3 speed)
speed
- output bufferpublic final void getWindSpeed(TelemVect3 speed)
speed
- output bufferpublic final float getOnPathWetness()
public final float getOffPathWetness()
public final VehicleScoringInfo getVehicleScoringInfo(int i)
i
- the index
getNumVehicles()
public final int getVehicleScoringInfos(VehicleScoringInfo[] vsis)
VehicleScoringInfo
s and writes them into the given array.
vsis
- the target array (must be of at least getNumVehicles()
size.
VehicleScoringInfo
s.public final VehicleScoringInfo getLeadersVehicleScoringInfo()
VehicleScoringInfo
.
This is equivalent to getVehicleScoringInfo( 0 ).
VehicleScoringInfo
.public final VehicleScoringInfo getPlayersVehicleScoringInfo()
getOwnPlace(boolean)
public final VehicleScoringInfo getViewedVehicleScoringInfo()
public final short getOwnPlace(boolean byClass)
byClass
- only consider vehicles in the same class
public final VehicleScoringInfo getFastestSector1VSI()
public final VehicleScoringInfo getFastestSector2VSI()
public final VehicleScoringInfo getFastestSector3VSI()
public final VehicleScoringInfo getFastestSectorVSI(int sector)
sector
- the queried sector
public final VehicleScoringInfo getFastestLapVSI()
public final VehicleScoringInfo getSecondFastestLapVSI()
null
).
null
).public final Laptime getFastestLaptime()
public final VehicleScoringInfo getCompareVSI()
Gets the VehicleScoringInfo
to compare against.
By default this is null
, which leads to default behavior. But a plugin can override this.
VehicleScoringInfo
to compare laptimes against.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |