Package generators

Source Code of generators.GameControllerGenerator

package generators;

import java.util.List;

import squaresgame.GameController;
import squaresgame.Grid;
import squaresgame.Player;
import squaresgame.TurnCounter;

public class GameControllerGenerator {
  private static GameController controller;
  private static Thread gameThread;

  public static void setUpGameController(Grid g, List<Player> players){
    TurnCounter tc = new TurnCounter(players);

    controller = new GameController(tc, g);
    gameThread = new Thread(controller);
    gameThread.start();
  }
}
TOP

Related Classes of generators.GameControllerGenerator

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.