A clock which tracks simulation time. More...
Collaboration diagram for com.mak.vrlj.vl.Clock:Public Member Functions | |
| int | hashCode () |
| boolean | equals (Object obj) |
| double | elapsedRealTime () |
| double | getApproxElapsedRealTime () |
| double | getInitialTime () |
| double | getSimTime () |
| boolean | isSimTimeSet () |
| void | setApproxElapsedRealTime (double approxElapsedRealTime) |
| void | setInitialTime (double initialTime) |
| void | setSimTime (double simTime) |
| Set the current simulation time. | |
Private Attributes | |
| double | myInitialTime = 0.0 |
| double | mySimTime = 0.0 |
| double | myApproxElapsedRealTime = 0.0 |
| boolean | mySimTimeSet = false |
A clock which tracks simulation time.
|
inline |
System.nanoTime() Referenced by com.mak.vrlj.example.listen.Listen.main().
|
inline |
|
inline |
References com.mak.vrlj.vl.Clock.myApproxElapsedRealTime.
|
inline |
References com.mak.vrlj.vl.Clock.myInitialTime.
|
inline |
References com.mak.vrlj.vl.Clock.mySimTime.
Referenced by com.mak.vrlj.example.f18.VehicleSim.fireMunition(), com.mak.vrlj.object.Entity.getRotationalVelocity(), com.mak.vrlj.object.Entity.getWorldOrientation(), com.mak.vrlj.object.Entity.getWorldPosition(), com.mak.vrlj.object.Entity.getWorldVelocity(), com.mak.vrlj.example.f18.F18.main(), com.mak.vrlj.example.f18.VehicleSim.moveArtParts(), com.mak.vrlj.example.f18.VehicleSim.munitionTick(), com.mak.vrlj.example.f18.VehicleSim.reactToDamage(), com.mak.vrlj.object.Entity.setRotationalVelocity(), com.mak.vrlj.object.Entity.setWorldAcceleration(), com.mak.vrlj.object.Entity.setWorldOrientation(), com.mak.vrlj.object.Entity.setWorldPosition(), and com.mak.vrlj.object.Entity.setWorldVelocity().
|
inline |
|
inline |
References com.mak.vrlj.vl.Clock.mySimTimeSet.
|
inline |
| approxElapsedRealTime | the approximate elapsed real time in seconds. |
References com.mak.vrlj.vl.Clock.myApproxElapsedRealTime.
|
inline |
| initialTime | the initial simulation time. |
References com.mak.vrlj.vl.Clock.myInitialTime.
|
inline |
Set the current simulation time.
| simTime | the current simulation time. |
References com.mak.vrlj.vl.Clock.mySimTime, and com.mak.vrlj.vl.Clock.mySimTimeSet.
Referenced by com.mak.vrlj.example.talk.Talk.main(), com.mak.vrlj.example.listen.Listen.main(), and com.mak.vrlj.example.f18.F18.main().
|
private |
|
private |
|
private |
|
private |