Ejemplo n.º 1
0
 @Override
 public void onTournamentStart(long tournamentRandomSeed) {
   // Start the game scene
   System.out.println("starting tournament and switching to GAMESCREEN");
   NextpeerPlugin.instance().lastKnownTournamentRandomSeed = tournamentRandomSeed;
   GameScreen gs = new GameScreen(SkiFun.this);
   while (getScreen() instanceof MainScreen) {
     setScreen(gs);
   }
 }
Ejemplo n.º 2
0
 @Override
 public void onTournamentEnd() {
   // End the game scene, switch to main menu
   NextpeerPlugin.instance().lastKnownTournamentRandomSeed = 0;
   setScreen(new MainScreen(SkiFun.this));
 }