Interface GameWindow
-
public interface GameWindowThe interface for a game window of the ICGE.- Author:
- Tim Neumann
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ConsolegetConsole()Get the console for this game windowEntitySidebargetEntitySidebar()Get the entity sidebar for this game windowPlayfieldDrawergetPlayfieldDrawer()Get the drawer responsible for drawing the playfield for this game window.TaskStatusDisplaygetTaskStatusDisplay()Get the task status display for this game window.TextureRegistrygetTextureRegistry()Get the registry, with which to register textures for this game window.ToolbargetToolbar()Get the toolbar for this game window.voidsetSimulationProxy(SimulationProxy simulationProxy)Set the simulation proxy instance used by multiple UI components to inform the Simulation of user actions.voidsetWindowTitle(String title)Set the title of the window, in which the ICGE is displayed.voidstart()Start and show the game window.
-
-
-
Method Detail
-
getTextureRegistry
TextureRegistry getTextureRegistry()
Get the registry, with which to register textures for this game window.- Returns:
- The texture registry used by this window.
-
getPlayfieldDrawer
PlayfieldDrawer getPlayfieldDrawer()
Get the drawer responsible for drawing the playfield for this game window.- Returns:
- The playfield drawer used by this window.
-
getToolbar
Toolbar getToolbar()
Get the toolbar for this game window.- Returns:
- The toolbar used by this window.
-
getEntitySidebar
EntitySidebar getEntitySidebar()
Get the entity sidebar for this game window- Returns:
- The entity sidebar used by this window
-
getConsole
Console getConsole()
Get the console for this game window- Returns:
- The console used by this window
-
getTaskStatusDisplay
TaskStatusDisplay getTaskStatusDisplay()
Get the task status display for this game window.- Returns:
- The task status display used by this window
-
setWindowTitle
void setWindowTitle(String title)
Set the title of the window, in which the ICGE is displayed.- Parameters:
title- The title to use.
-
start
void start()
Start and show the game window.
-
setSimulationProxy
void setSimulationProxy(SimulationProxy simulationProxy)
Set the simulation proxy instance used by multiple UI components to inform the Simulation of user actions.- Parameters:
simulationProxy- The instance of simulation proxy to use
-
-