Beispiel #1
0
 public GameHallClient(GameHall gameHall, GameMain gameMain)
 {
     this.gameHall   = gameHall;
     this.gameMain   = gameMain;
     serverIPAddress = gameHall.GameHallWindowInfo.MenuWindowInfo.ServerIPAddress;
     playerName      = gameHall.GameHallWindowInfo.MenuWindowInfo.PlayName;
     tcpClient       = new TcpClient();
     netThread       = new Thread(new ThreadStart(RunNetwork));
     TcpClientConnect();
     RegisterWithServer();
 }
        public GameHallWindow()
        {
            InitializeComponent();
            InitializeSeatButtons();
            menuWindow = new MenuWindow();
            menuWindow.ShowDialog();
            gameMainWindow = new GameMainWindow(this);
            gameHall       = new GameHall(this);

            showGameMainWindow = false;
            seatNumber         = 0;
        }