public class UiEditor extends BasicGame implements GameResizeListener, ActionListener
graphics, height, MAXIMUM_DELTA, TARGET_FPS, width
Constructor and Description |
---|
UiEditor(java.lang.String directory,
java.lang.String gameThemePath) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDirectory() |
void |
goToInitialModal() |
void |
initialise()
Initialse the game
|
void |
interpolate(float alpha)
Interpolate the game state
|
void |
newFile(EditorNewFileListener listener) |
void |
onActionBegin(ActionEvent event)
Called when an action event begins (e.g.
|
void |
onActionEnd(ActionEvent event)
Called when an action event ends (e.g.
|
void |
onResize(int width,
int height) |
void |
openFile(EditorOpenFileListener listener) |
void |
render(Graphics g)
Render the game
|
void |
update(float delta)
Update the game
|
keyDown, keyTyped, keyUp, mouseMoved, onPause, onResume, preinit, scrolled, touchDown, touchDragged, touchUp
addResizeListener, createStage, dispose, getHeight, getWidth, postinit, removeResizeListener, render, resize, start
public UiEditor(java.lang.String directory, java.lang.String gameThemePath)
public void initialise()
GameContainer
initialise
in class GameContainer
public void update(float delta)
GameContainer
update
in class GameContainer
delta
- The time in seconds since the last updatepublic void interpolate(float alpha)
GameContainer
interpolate
in class GameContainer
alpha
- The alpha value to use during interpolationpublic void render(Graphics g)
GameContainer
render
in class GameContainer
g
- The Graphics
context available for renderingpublic void onResize(int width, int height)
onResize
in interface GameResizeListener
public void goToInitialModal()
public void newFile(EditorNewFileListener listener)
public void openFile(EditorOpenFileListener listener)
public void onActionBegin(ActionEvent event)
ActionListener
onActionBegin
in interface ActionListener
event
- An ActionEvent
instance containing the event detailspublic void onActionEnd(ActionEvent event)
ActionListener
onActionEnd
in interface ActionListener
event
- An ActionEvent
instance containing the event detailspublic java.lang.String getDirectory()