de.unifreiburg.twodeedoo.model.test
Class FakeGameController

java.lang.Object
  extended by de.unifreiburg.twodeedoo.model.test.FakeGameController
All Implemented Interfaces:
IGameController

public class FakeGameController
extends java.lang.Object
implements IGameController

IGameController fake for testing.

Author:
anton

Constructor Summary
FakeGameController()
           
 
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 keyHandler)
          Set the handler which receives the keys.
 void setMainSchedulable(ISchedulable mainSchedulable)
          Set the main schedulable.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FakeGameController

public FakeGameController()
Method Detail

getKeyHandler

public IKeyHandler getKeyHandler()
Description copied from interface: IGameController
Get the handler which receives the keys.

Specified by:
getKeyHandler in interface IGameController
Returns:
the keyHandler

setKeyHandler

public void setKeyHandler(IKeyHandler keyHandler)
Description copied from interface: IGameController
Set the handler which receives the keys. There is only one.

Specified by:
setKeyHandler in interface IGameController
Parameters:
keyHandler - the keyHandler to set

getMainSchedulable

public ISchedulable getMainSchedulable()
Description copied from interface: IGameController
Get the ISchedulable which is scheduled for each frame.

Specified by:
getMainSchedulable in interface IGameController
Returns:
the mainSchedulable

setMainSchedulable

public void setMainSchedulable(ISchedulable mainSchedulable)
Description copied from interface: IGameController
Set the main schedulable. There is one.

Specified by:
setMainSchedulable in interface IGameController
Parameters:
mainSchedulable - the mainSchedulable to set