A object that describes the time a object will remain in the Physics engine.
Lisää...
Lista kaikista jäsenistä.
Julkiset jäsenfunktiot |
| Lifespan () |
| Creates a new Lifespan Instance that is Immortal.
|
| Lifespan (Scalar maxAge) |
| Creates a new Lifespan Instance that is mortal.
|
| Lifespan (Scalar age, Scalar maxAge) |
| Creates a new Lifespan Instance that is mortal and has already aged.
|
void | Update (TimeStep step) |
| Increases the Age of object by a change in time.
|
void | Update (Scalar dt, int updateCount) |
Lifespan | Duplicate () |
object | Clone () |
Ominaisuudet |
int | LastUpdate [get] |
bool | IsExpired [get, set] |
| Gets and Sets if it IsExpired and should be removed from the engine.
|
bool | IsImmortal [get] |
| Gets if the only way for the object to leave the engine is for it to be set to expired.
|
bool | IsOverAged [get] |
| Gets if it is expired becuase of old age.
|
Scalar | MaxAge [get, set] |
| Gets and Sets how long the object will stay in the engine.
|
Scalar | TimeLeft [get] |
| Gets how much time the object has left.
|
Scalar | Age [get, set] |
| Gets and Sets The current age of the object.
|
Yksityiskohtainen selite
A object that describes the time a object will remain in the Physics engine.
Rakentajien & purkajien dokumentaatio
Creates a new Lifespan Instance that is Immortal.
Creates a new Lifespan Instance that is mortal.
- Parametrit:
-
maxAge | How long the item will stay in the engine. (in seconds) |
Lifespan |
( |
Scalar |
age, |
|
|
Scalar |
maxAge |
|
) |
| [inline] |
Creates a new Lifespan Instance that is mortal and has already aged.
- Parametrit:
-
age | How old the item is. (in seconds) |
maxAge | How long the item will stay in the engine. (in seconds) |
Jäsenfunktioiden dokumentaatio
Increases the Age of object by a change in time.
- Parametrit:
-
update | the update's number (It wont age more then once on a update) |
step | The TimeStep describing the change in time. |
Ominaisuuksien dokumentaatio
Gets and Sets The current age of the object.
bool IsExpired [get, set] |
Gets and Sets if it IsExpired and should be removed from the engine.
Gets if the only way for the object to leave the engine is for it to be set to expired.
Gets if it is expired becuase of old age.
Gets and Sets how long the object will stay in the engine.
Gets how much time the object has left.
Dokumentaatio tälle luokalle luotiin seuraavasta tiedostosta:
- C:/Users/tero/AppData/Local/Temp/npo_build/Jypeli/Physics2DDotNet/Lifespan.cs