public class DevTools
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
width
The visualised width of every data
|
Constructor and Description |
---|
DevTools(int xPos,
int yPos) |
Modifier and Type | Method and Description |
---|---|
float |
getAverage()
Returns the average delta time.
|
int |
getLeftOffset() |
int |
getSavedFPS(int pos)
Get a recorded FPS value.
|
float |
getTimeStepMin()
The minimum time between two FPS values.
|
int |
getTopOffset() |
int |
getWidth()
Width of FPS diag.
|
boolean |
isVisible()
Is the diagramm visible?
|
void |
render(GameView view)
Renders the diagramm
|
void |
setVisible(boolean visible)
Set the FPSdiag visible.
|
void |
update(float delta)
Updates the diagramm
|
public static final int width
public DevTools(int xPos, int yPos)
xPos
- the position of the diagram from leftyPos
- the position of the diagram from toppublic void update(float delta)
delta
- public void render(GameView view)
view
- public int getSavedFPS(int pos)
pos
- the array positiongetTimeStepMin()
public float getTimeStepMin()
public float getAverage()
public boolean isVisible()
public void setVisible(boolean visible)
visible
- public int getLeftOffset()
public int getTopOffset()
public int getWidth()