|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.ctdp.rfdynhud.gamedata.VehicleScoringInfo
public class VehicleScoringInfo
Nested Class Summary | |
---|---|
static class |
VehicleScoringInfo.VSIPlaceComparator
Comparator to sort by place. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
|
Laptime |
getAverageLaptime()
Gets the average laptime of the current session. |
float |
getBestLapTime()
Gets the best lap time best lap time. |
float |
getBestSector1()
Gets the best sector 1 time. |
float |
getBestSector2(boolean includingSector1)
Gets the best sector 2 time. |
float |
getBestSector3()
Gets the best sector 3 time. |
int |
getCurrentGear()
Gets the current gear. |
short |
getCurrentLap()
Gets the current lap index (one based). |
float |
getCurrentLaptime()
The current laptime (may be incomplete). |
float |
getCurrentSector1()
Gets the current sector 1 (if valid). |
float |
getCurrentSector2(boolean includingSector1)
Gets current sector 2 time. |
int |
getDriverId()
Uniquely identifes this vehicle's driver. |
java.lang.Integer |
getDriverID()
Uniquely identifes this vehicle's driver. |
java.lang.String |
getDriverName()
Gets the full name of the driver driving this vehicle. |
java.lang.String |
getDriverName(boolean upperCase)
Gets the full name of the driver driving this vehicle. |
java.lang.String |
getDriverNameShort()
Gets driver name (short form) |
java.lang.String |
getDriverNameShort(boolean upperCase)
Gets driver name (short form) |
java.lang.String |
getDriverNameTLC()
Gets driver name (three letter code) |
java.lang.String |
getDriverNameTLC(boolean upperCase)
Gets driver name (three letter code) |
int |
getEngineBoostMapping()
Gets the current engine boost mapping. |
float |
getEngineMaxRPM()
Gets the current engine' max RPM. |
float |
getEngineRPM()
Gets the current engine RPM. |
int |
getEstimatedMaxLaps()
Gets the estimated max laps based on the session end time and average lap time. |
Laptime |
getFastestLaptime()
Gets this driver's fastest Laptime . |
FinishStatus |
getFinishStatus()
Gets the current finish status. |
float |
getLapDistance()
Gets the current distance around track in meters. |
int |
getLapsBehindLeader(boolean byClass)
Gets the laps behind leader. |
int |
getLapsBehindNextInFront(boolean byClass)
Gets the laps behind vehicle in next higher place. |
short |
getLapsCompleted()
Gets the number of laps completed. |
float |
getLapsRemaining(int maxLaps)
Gets the number of remaining laps (with fractions). |
float |
getLapStartTime()
Gets the time this lap was started at. |
Laptime |
getLaptime(int lap)
Gets the Laptime object for the given lap. |
Laptime |
getLastLaptime()
Gets the last lap time. |
float |
getLastLapTime()
Gets the last lap time. |
float |
getLastSector1()
Gets the last sector 1 time. |
float |
getLastSector2(boolean includingSector1)
Gets the last sector 2 time. |
float |
getLastSector3()
Gets the last sector 3 time. |
VehicleScoringInfo |
getLeaderByClass()
Gets the VehicleScoringInfo , that leads the same class. |
void |
getLocalAcceleration(TelemVect3 localAccel)
acceleration (meters/sec^2) in local vehicle coordinates |
void |
getLocalRotation(TelemVect3 localRot)
rotation (radians/sec) in local vehicle coordinates |
void |
getLocalRotationalAcceleration(TelemVect3 localRotAccel)
rotational acceleration (radians/sec^2) in local vehicle coordinates |
void |
getLocalVelocity(TelemVect3 localVel)
velocity (meters/sec) in local vehicle coordinates |
VehicleScoringInfo |
getNextBehind(boolean byClass)
Gets the VehicleScoringInfo , that is next behind. |
VehicleScoringInfo |
getNextInFront(boolean byClass)
Gets the VehicleScoringInfo , that is next in front. |
float |
getNormalizedLapDistance()
Gets current distance around track as a fraction [0,1]. |
short |
getNumberOfScheduledPitstops()
Gets the number of scheduled pitstops (only valid for the player). |
short |
getNumOutstandingPenalties()
Gets the number of outstanding penalties. |
short |
getNumPitstopsMade()
Gets the number of pitstops made. |
int |
getNumVehiclesInSameClass()
Gets the number of vehicles in the same vehicle class. |
Laptime |
getOldAverageLaptime()
Gets the average laptime of the current session excluding the last timed lap. |
void |
getOrientationX(TelemVect3 oriX)
top row of orientation matrix (also converts local vehicle vectors into world X using dot product) |
void |
getOrientationY(TelemVect3 oriY)
mid row of orientation matrix (also converts local vehicle vectors into world Y using dot product) |
void |
getOrientationZ(TelemVect3 oriZ)
bot row of orientation matrix (also converts local vehicle vectors into world Z using dot product) |
float |
getPathLateral()
Gets lateral position with respect to *very approximate* "center" path. |
short |
getPlace(boolean byClass)
1-based position |
float |
getScalarVelocity()
Gets velocity in the units selected in the PLR. |
float |
getScalarVelocityKPH()
Gets velocity (km/h). |
float |
getScalarVelocityMPH()
Gets velocity (mph). |
float |
getScalarVelocityMPS()
Gets velocity (meters/sec) in local vehicle coordinates. |
ScoringInfo |
getScoringInfo()
|
byte |
getSector()
Gets the current sector (1,2,3). |
SessionLimit |
getSessionLimit()
Gets the SessionLimit of the current session. |
SessionLimit |
getSessionLimit(SessionLimit preference)
Gets the SessionLimit of the current session. |
float |
getStintLength()
Gets the current stint length with fractions. |
int |
getStintStartLap()
Gets the lap, at which we started the current stint. |
float |
getTimeBehindLeader(boolean byClass)
Gets the time behind leader. |
float |
getTimeBehindNextInFront(boolean byClass)
Gets the time behind vehicle in next higher place. |
float |
getTopspeed()
Gets topspeed in km/h. |
float |
getTrackEdge()
Gets track edge (w.r.t. |
java.lang.String |
getVehicleClass()
Gets the vehicle class. |
int |
getVehicleClassId()
Gets the vehicle class id. |
java.lang.Integer |
getVehicleClassID()
Gets the vehicle class id. |
VehicleControl |
getVehicleControl()
|
VehicleInfo |
getVehicleInfo()
|
java.lang.String |
getVehicleName()
Gets the vehicle's name. |
void |
getWorldPosition(TelemVect3 position)
Gets world position in meters. |
float |
getWorldPositionX()
Gets world position in meters. |
float |
getWorldPositionY()
Gets world position in meters. |
float |
getWorldPositionZ()
Gets world position in meters. |
int |
hashCode()
|
boolean |
isInPits()
between pit entrance and pit exit (not always accurate for remote vehicles) |
boolean |
isLapJustStarted()
Gets, whether the current lap has just been stared. |
boolean |
isPlayer()
|
boolean |
isValid()
|
void |
readFromStream(java.io.InputStream in)
|
java.lang.String |
toString()
|
void |
writeToStream(java.io.OutputStream out)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public final ScoringInfo getScoringInfo()
public final boolean isValid()
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 java.lang.String getDriverName(boolean upperCase)
upperCase
- whether the name should be in all upper case
public final java.lang.String getDriverName()
public final java.lang.String getDriverNameShort(boolean upperCase)
upperCase
- whether the name should be in all upper case
public final java.lang.String getDriverNameShort()
public final java.lang.String getDriverNameTLC(boolean upperCase)
upperCase
- whether the name should be in all upper case
public final java.lang.String getDriverNameTLC()
public final int getDriverId()
getDriverID()
, but as a primitive int.
public final java.lang.Integer getDriverID()
getDriverId()
, but as an Integer
instance.
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public final java.lang.String getVehicleName()
public final VehicleInfo getVehicleInfo()
public final short getLapsCompleted()
public final short getCurrentLap()
public final boolean isLapJustStarted()
true
for just one single time at the beginning of the lap.
public final SessionLimit getSessionLimit(SessionLimit preference)
SessionLimit
of the current session. If the session limit is defined to be LAPS,
LAPS is returned. If it is defined to be timed, TIME is returned. Otherwise the method
tries to guess the limit based on the average laptime.
preference
- if both TIME and LAPS are possible, preference is returned.
SessionLimit
.public final SessionLimit getSessionLimit()
SessionLimit
of the current session. If the session limit is defined to be LAPS,
LAPS is returned. If it is defined to be timed, TIME is returned. Otherwise the method
tries to guess the limit based on the average laptime.
SessionLimit
.public final int getEstimatedMaxLaps()
SessionLimit
is defined to be LAPS, then max laps is known and returned.
public final float getLapsRemaining(int maxLaps)
maxLaps
- the maximum laps in the race
public final byte getSector()
public final FinishStatus getFinishStatus()
public final float getLapDistance()
public final float getNormalizedLapDistance()
public final int getStintStartLap()
public final float getStintLength()
public final Laptime getLaptime(int lap)
lap
- the lap
public final Laptime getFastestLaptime()
Laptime
.
Laptime
.public final Laptime getOldAverageLaptime()
public final Laptime getAverageLaptime()
public final float getPathLateral()
public final float getTrackEdge()
public final float getBestSector1()
public final float getBestSector2(boolean includingSector1)
includingSector1
- return sum of sector1 and 2?
public final float getBestLapTime()
public final float getBestSector3()
public final float getLastSector1()
public final float getLastSector2(boolean includingSector1)
includingSector1
- return sum of sector1 and 2?
public final float getLastLapTime()
public final Laptime getLastLaptime()
public final float getLastSector3()
public final float getCurrentSector1()
public final float getCurrentSector2(boolean includingSector1)
includingSector1
- only affects result if sector1 is valid
public final float getCurrentLaptime()
public final short getNumPitstopsMade()
public short getNumberOfScheduledPitstops()
public final short getNumOutstandingPenalties()
public final boolean isPlayer()
public final VehicleControl getVehicleControl()
public final boolean isInPits()
public final int getNumVehiclesInSameClass()
public final short getPlace(boolean byClass)
byClass
- only consider vehicles in the same class
public final VehicleScoringInfo getLeaderByClass()
VehicleScoringInfo
, that leads the same class.
VehicleScoringInfo
, that leads the same class.public final VehicleScoringInfo getNextInFront(boolean byClass)
VehicleScoringInfo
, that is next in front.
byClass
- only consider vehicles in the same class
VehicleScoringInfo
, that is next in front.public final VehicleScoringInfo getNextBehind(boolean byClass)
VehicleScoringInfo
, that is next behind.
byClass
- only consider vehicles in the same class
VehicleScoringInfo
, that is next behind.public final java.lang.String getVehicleClass()
public final int getVehicleClassId()
public final java.lang.Integer getVehicleClassID()
public final float getTimeBehindNextInFront(boolean byClass)
byClass
- only consider vehicles in the same class
public final int getLapsBehindNextInFront(boolean byClass)
byClass
- only consider vehicles in the same class
public final float getTimeBehindLeader(boolean byClass)
byClass
- only consider vehicles in the same class
public final int getLapsBehindLeader(boolean byClass)
byClass
- only consider vehicles in the same class
public final float getLapStartTime()
public final void getWorldPosition(TelemVect3 position)
position
- output bufferpublic final float getWorldPositionX()
public final float getWorldPositionY()
public final float getWorldPositionZ()
public final float getEngineRPM()
LiveGameDataController
.
public final float getEngineMaxRPM()
LiveGameDataController
.
public final int getEngineBoostMapping()
LiveGameDataController
.
public final int getCurrentGear()
LiveGameDataController
.
public final void getLocalVelocity(TelemVect3 localVel)
localVel
- output bufferpublic final float getScalarVelocityMPS()
public final float getScalarVelocityMPH()
public final float getScalarVelocityKPH()
public final float getScalarVelocity()
public final float getTopspeed()
public final void getLocalAcceleration(TelemVect3 localAccel)
localAccel
- output bufferpublic final void getOrientationX(TelemVect3 oriX)
oriX
- output bufferpublic final void getOrientationY(TelemVect3 oriY)
oriY
- output bufferpublic final void getOrientationZ(TelemVect3 oriZ)
oriZ
- output bufferpublic final void getLocalRotation(TelemVect3 localRot)
localRot
- output bufferpublic final void getLocalRotationalAcceleration(TelemVect3 localRotAccel)
localRotAccel
- output bufferpublic java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |