public class UiEditor extends BasicGame implements GameResizeListener, ActionListener
graphics, height, MAXIMUM_DELTA, polygonSpriteBatch, shapeRenderer, spriteBatch, 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, touchUpaddResizeListener, createStage, dispose, getHeight, getWidth, postinit, removeResizeListener, render, resize, startpublic UiEditor(java.lang.String directory,
java.lang.String gameThemePath)
public void initialise()
GameContainerinitialise in class GameContainerpublic void update(float delta)
GameContainerupdate in class GameContainerdelta - The time in seconds since the last updatepublic void interpolate(float alpha)
GameContainerinterpolate in class GameContaineralpha - The alpha value to use during interpolationpublic void render(Graphics g)
GameContainerrender in class GameContainerg - The Graphics context available for renderingpublic void onResize(int width,
int height)
onResize in interface GameResizeListenerpublic void goToInitialModal()
public void newFile(EditorNewFileListener listener)
public void openFile(EditorOpenFileListener listener)
public void onActionBegin(ActionEvent event)
ActionListeneronActionBegin in interface ActionListenerevent - An ActionEvent instance containing the event detailspublic void onActionEnd(ActionEvent event)
ActionListeneronActionEnd in interface ActionListenerevent - An ActionEvent instance containing the event detailspublic java.lang.String getDirectory()