예제 #1
0
 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();
 }
예제 #2
0
 public Game()
 {
     this.players       = new Players();
     this.board         = new ServerBoard();
     this.state         = new AwaitConnectionState(this);
     this.server        = null;
     this.packetfactory = new PacketFactoryFlyWheel();
 }
예제 #3
0
 public void Reset()
 {
     this.board = new ServerBoard();
     this.state = new AwaitBoardInitializationState(this);
 }