Jypeli 4
The simple game programming library
|
A class to update the PhysicsEngine at regular intervals. Lisää...
Julkiset jäsenfunktiot | |
PhysicsTimer (PhysicsCallback callback, Scalar targetInterval) | |
Creates a new PhysicsTimer Instance. | |
void | Dispose () |
Stops the Timer. | |
void | RunOnCurrentThread () |
Ominaisuudet | |
bool | IsBackground [get, set] |
Gets or sets a value indicating whether or not the thread that runs the time is a background thread. | |
bool | IsRunning [get, set] |
Gets and Sets if the PhysicsTimer is currently calling the Callback. | |
Scalar | TargetInterval [get, set] |
Gets and Sets the desired Interval between Callback calls. | |
TimerState | State [get] |
Gets the current State of the PhysicsTimer. | |
PhysicsCallback | Callback [get, set] |
Gets and Sets the current Callback that will be called. | |
Tapahtumat | |
EventHandler | IsRunningChanged |
A class to update the PhysicsEngine at regular intervals.
PhysicsTimer | ( | PhysicsCallback | callback, |
Scalar | targetInterval | ||
) | [inline] |
Creates a new PhysicsTimer Instance.
callback | The callback to call. |
targetDt | The target change in time. (in seconds) |
void Dispose | ( | ) | [inline] |
Stops the Timer.
PhysicsCallback Callback [get, set] |
Gets and Sets the current Callback that will be called.
bool IsBackground [get, set] |
Gets or sets a value indicating whether or not the thread that runs the time is a background thread.
bool IsRunning [get, set] |
Gets and Sets if the PhysicsTimer is currently calling the Callback.
TimerState State [get] |
Gets the current State of the PhysicsTimer.
Scalar TargetInterval [get, set] |
Gets and Sets the desired Interval between Callback calls.