public Game(NetServer server, Players players) { this.players = players; this.board = new ServerBoard(); this.state = new AwaitConnectionState(this); this.server = server; this.packetfactory = new PacketFactoryFlyWheel(); }
public Game() { this.players = new Players(); this.board = new ServerBoard(); this.state = new AwaitConnectionState(this); this.server = null; this.packetfactory = new PacketFactoryFlyWheel(); }
public void Reset() { this.board = new ServerBoard(); this.state = new AwaitBoardInitializationState(this); }