|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectMicrosoft.Xna.Framework.GameTime
public class GameTime
Snapshot of the game timing state expressed in values that can be used by variable-step (real time) or fixed-step (game time) games.
Constructor Summary | |
---|---|
GameTime()
Creates a new instance of GameTime. |
|
GameTime(System.TimeSpan totalGameTime,
System.TimeSpan elapsedGameTime)
Creates a new instance of GameTime. |
|
GameTime(System.TimeSpan totalGameTime,
System.TimeSpan elapsedGameTime,
boolean isRunningSlowly)
Creates a new instance of GameTime. |
Method Summary | |
---|---|
System.TimeSpan |
getElapsedGameTime()
The amount of elapsed game time since the last update. |
boolean |
getIsRunningSlowly()
Gets a value indicating that the game loop is taking longer that its TargetElapsedTime. |
System.TimeSpan |
getTotalGameTime()
The amount of game time since the start of the game. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GameTime()
public GameTime(System.TimeSpan totalGameTime, System.TimeSpan elapsedGameTime)
totalGameTime
- The amount of game time since the start of the game.elapsedGameTime
- The amount of elapsed game time since the last update.public GameTime(System.TimeSpan totalGameTime, System.TimeSpan elapsedGameTime, boolean isRunningSlowly)
totalGameTime
- The amount of game time since the start of the game.elapsedGameTime
- The amount of elapsed game time since the last update.isRunningSlowly
- Whether the game is running multiple updates this frame.Method Detail |
---|
public System.TimeSpan getElapsedGameTime()
public boolean getIsRunningSlowly()
public System.TimeSpan getTotalGameTime()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |