|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.unifreiburg.twodeedoo.model.test.FakeGameController
public class FakeGameController
IGameController
fake for testing.
Constructor Summary | |
---|---|
FakeGameController()
|
Method Summary | |
---|---|
IKeyHandler |
getKeyHandler()
|
ISchedulable |
getMainSchedulable()
|
boolean |
isActivitySwitched()
Has IGameController.switchToActivity(IActivity) been called since the start
of this event distribution cycle? |
void |
quitGame()
Quit the game intentionally. |
void |
restartGame()
Restart the game from the beginning. |
void |
switchToActivity(IActivity newActivity)
Tell the simulator to run a new activity instead of the current activity. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FakeGameController()
Method Detail |
---|
public IKeyHandler getKeyHandler()
public ISchedulable getMainSchedulable()
public void switchToActivity(IActivity newActivity)
IGameController
switchToActivity
in interface IGameController
newActivity
- another activity.public boolean isActivitySwitched()
IGameController
IGameController.switchToActivity(IActivity)
been called since the start
of this event distribution cycle?
isActivitySwitched
in interface IGameController
public void quitGame()
IGameController
quitGame
in interface IGameController
public void restartGame()
IGameController
restartGame
in interface IGameController
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |