public class JournalScreen extends AbstractScreen
Modifier and Type | Field and Description |
---|---|
private com.badlogic.gdx.graphics.OrthographicCamera |
camera
This is the camera for the screen
|
private Journal |
journal |
game
Constructor and Description |
---|
JournalScreen(GameMain game) |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
This is to be called when you want to dispose of all data
|
void |
hide()
This method is called when the user hides the window
|
void |
pause()
This is called when the focus is lost on the window
|
void |
render(float delta)
This method is called every render loop
|
void |
resize(int width,
int height)
This method is called on window resize
|
void |
resume()
This method is called when the window is brought back into focus
|
void |
show()
This method overrides the Screen method show()
|
void |
update()
Called every game tick, all screen related logic should be done in this method.
|
private Journal journal
private com.badlogic.gdx.graphics.OrthographicCamera camera
public JournalScreen(GameMain game)
public void show()
AbstractScreen
show
in interface com.badlogic.gdx.Screen
show
in class AbstractScreen
public void update()
AbstractScreen
update
in class AbstractScreen
public void render(float delta)
AbstractScreen
render
in interface com.badlogic.gdx.Screen
render
in class AbstractScreen
delta
- - The time in seconds since the last drawpublic void resize(int width, int height)
AbstractScreen
resize
in interface com.badlogic.gdx.Screen
resize
in class AbstractScreen
width
- - The new widthheight
- - The new heightpublic void pause()
AbstractScreen
pause
in interface com.badlogic.gdx.Screen
pause
in class AbstractScreen
public void resume()
AbstractScreen
resume
in interface com.badlogic.gdx.Screen
resume
in class AbstractScreen
public void hide()
AbstractScreen
hide
in interface com.badlogic.gdx.Screen
hide
in class AbstractScreen
public void dispose()
AbstractScreen
dispose
in interface com.badlogic.gdx.Screen
dispose
in class AbstractScreen