@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); } }
@Override public void onTournamentEnd() { // End the game scene, switch to main menu NextpeerPlugin.instance().lastKnownTournamentRandomSeed = 0; setScreen(new MainScreen(SkiFun.this)); }