Esempio n. 1
0
        public FrmMain()
        {
            this.enableSound = true;
            this.gameBoard = new BoardStatus();
            this.replayBoard = new BoardStatus();
            this.gCtrl = new GameController(this, this.gameBoard, this.replayBoard);
            this.mCtrl = new MoveController(this.gCtrl);
            this.network = new GameNetwork(this.gCtrl);

            CheckForIllegalCrossThreadCalls = false;
            InitializeComponent();

            this.Board.Game = this.gameBoard;
            this.SetInfoText(initInfoText);
            this.FixLinkLableTabStop();

            this.WbrMovesList.ObjectForScripting = this;
            this.WbrCommentList.ObjectForScripting = this;
            this.WbrMovesList.DocumentText = "<html><head><title>Blank</title></head><body style=\"background-color:#1E3D46;overflow-y:auto;overflow-x:hidden;margin:0;padding:0;\"><a href=\"#\" onclick=\"window.external.TestWoW();\" id=\"s1\"></a></body></html>";
            this.WbrCommentList.DocumentText = "<html><head><title>Blank</title></head><body style=\"background-color:#1E3D46;overflow-y:auto;overflow-x:hidden;margin:0;padding:0;\"></body></html>";
        }
Esempio n. 2
0
 public GameNetwork(GameController gc)
 {
     this.gCtrl = gc;
     this.ObserverIPs = new List<string>();
     this.client = new UdpClient();
 }
Esempio n. 3
0
 public MoveController(GameController gCtrl)
 {
     this.gCtrl = gCtrl;
 }