de.unifreiburg.twodeedoo.view
Interface IGameController

All Known Implementing Classes:
SceneView

public interface IGameController

Control the execution of the game from within an Activity: switch to other activity, quit, restart.


Method Summary
 boolean isActivitySwitched()
          Has 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.
 

Method Detail

switchToActivity

void switchToActivity(IActivity newActivity)
Tell the simulator to run a new activity instead of the current activity.

Parameters:
newActivity - another activity.

isActivitySwitched

boolean isActivitySwitched()
Has switchToActivity(IActivity) been called since the start of this event distribution cycle?

Returns:
true if it has.

quitGame

void quitGame()
Quit the game intentionally. This usually even exits the program.


restartGame

void restartGame()
Restart the game from the beginning. If that isn't possible, quit.