Interface GameWindow
-
public interface GameWindow
The interface for a game window of the ICGE.- Author:
- Tim Neumann
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Console
getConsole()
Get the console for this game windowEntitySidebar
getEntitySidebar()
Get the entity sidebar for this game windowPlayfieldDrawer
getPlayfieldDrawer()
Get the drawer responsible for drawing the playfield for this game window.TaskStatusDisplay
getTaskStatusDisplay()
Get the task status display for this game window.TextureRegistry
getTextureRegistry()
Get the registry, with which to register textures for this game window.Toolbar
getToolbar()
Get the toolbar for this game window.void
setSimulationProxy(SimulationProxy simulationProxy)
Set the simulation proxy instance used by multiple UI components to inform the Simulation of user actions.void
setWindowTitle(String title)
Set the title of the window, in which the ICGE is displayed.void
start()
Start and show the game window.void
stop()
Stop and close 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.
-
stop
void stop()
Stop and close the game window. This action is equivalent with pressing the "X"-button of the 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
-
-