de.unifreiburg.twodeedoo.view
Interface IGameController

All Known Implementing Classes:
FakeGameController, SceneView

public interface IGameController

As much of the SceneView as the model needs to know

Author:
anton

Method Summary
 IKeyHandler getKeyHandler()
          Get the handler which receives the keys.
 ISchedulable getMainSchedulable()
          Get the ISchedulable which is scheduled for each frame.
 void setKeyHandler(IKeyHandler handler)
          Set the handler which receives the keys.
 void setMainSchedulable(ISchedulable schedulable)
          Set the main schedulable.
 

Method Detail

setMainSchedulable

void setMainSchedulable(ISchedulable schedulable)
Set the main schedulable. There is one.

Parameters:
schedulable - some ISchedulable

getMainSchedulable

ISchedulable getMainSchedulable()
Get the ISchedulable which is scheduled for each frame.

Returns:
some ISchedulable.

setKeyHandler

void setKeyHandler(IKeyHandler handler)
Set the handler which receives the keys. There is only one.

Parameters:
handler - the new key handler

getKeyHandler

IKeyHandler getKeyHandler()
Get the handler which receives the keys.

Returns:
some key handler.