Ejemplo n.º 1
0
  public SkiFun(Tournaments tournaments) {

    // If we have a supported tournaments object, set the game as callback
    if (tournaments != null && tournaments.isSupported()) {
      tournaments.setTournamentsCallback(mNextpeerTournamentsCallback);
      NextpeerPlugin.load(tournaments);
    }
  }
Ejemplo n.º 2
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.º 3
0
 @Override
 public void create() {
   batcher = new SpriteBatch();
   textOverPlayers =
       new BitmapFont(
           Gdx.files.internal("data/hobo.fnt"), Gdx.files.internal("data/hobo.png"), false, false);
   Settings.load();
   Assets.load();
   // Load the TournamentsCore if we have a valid implementation of it
   if (this.tournaments != null) {
     NextpeerPlugin.load(this.tournaments);
   }
   setScreen(new MainScreen(this));
   fps = new FPSLogger();
 }
Ejemplo n.º 4
0
 @Override
 public void onTournamentEnd() {
   // End the game scene, switch to main menu
   NextpeerPlugin.instance().lastKnownTournamentRandomSeed = 0;
   setScreen(new MainScreen(SkiFun.this));
 }