コード例 #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            ChessMain newgame = new ChessMain();

            newgame.Show();
            this.Hide();
        }
コード例 #2
0
ファイル: GameUI.cs プロジェクト: s-martel/Monstralia
        public bool LastMoveByClick;                    // Stores true if the last move was made by mouse click (instead of drag and drop)

        public GameUI(ChessMain form)
        {
            sSynth.Rate = -2;

            this.ParentForm = form; // get and store reference of parent form

            // Load all the chess images in a list
            ChessImages = new Images();

            #if DEBUG
            ResourceFolder = "..\\..\\Resources\\";
            #else
            ResourceFolder = "Resources\\";
            #endif

            // For Production Release
            ResourceFolder = "Resources\\";
            ChessImages.LoadImages(ResourceFolder);
            Sounds = new Sounds(ResourceFolder);                // create the sounds object for playing sound
            BuildBoard();
            sSynth.SpeakAsync("Welcome to Audio Chess! ");

            ParentForm.ChessCaptureBar.InitializeBar(ChessImages);      // Initialize chess bar

            // Initialize variables
            ShowMoveHelp = true;             //
        }
コード例 #3
0
        public GameUI(ChessMain form)
        {
            this.ParentForm = form;             // get and store reference of parent form

            // Load all the chess images in a list
            ChessImages = new Images();

            #if DEBUG
            ResourceFolder = "..\\..\\Resources\\";
            #else
            ResourceFolder = "Resources\\";
            #endif
            ChessImages.LoadImages(ResourceFolder);

            BuildBoard();



            // Initialize variables
            ShowMoveHelp = true;             //
        }
コード例 #4
0
        public bool LastMoveByClick;                    // Stores true if the last move was made by mouse click (instead of drag and drop)

        public GameUI(ChessMain form)
        {
            this.ParentForm = form;             // get and store reference of parent form

            // Load all the chess images in a list
            ChessImages = new Images();

            #if DEBUG
            ResourceFolder = "..\\..\\Resources\\";
            #else
            ResourceFolder = "Resources\\";
            #endif
            ChessImages.LoadImages(ResourceFolder);
            Sounds = new Sounds(ResourceFolder);                // create the sounds object for play sound
            BuildBoard();

            ParentForm.ChessCaptureBar.InitializeBar(ChessImages);              // Initialize chess bar

            // Initialize variables
            ShowMoveHelp = true;             //
        }
コード例 #5
0
        public bool LastMoveByClick;                    // Stores true if the last move was made by mouse click (instead of drag and drop)

        public GameUI(ChessMain form)
        {
            this.ParentForm = form;             // get and store reference of parent form

            // Load all the chess images in a list
            ChessImages = new Images();

            #if DEBUG
            ResourceFolder = "..\\..\\Resources\\";
            #else
            ResourceFolder = "Resources\\";
            #endif


            ResourceFolder = "Resources\\";
            ChessImages.LoadImages(ResourceFolder);
            BuildBoard();

            ParentForm.ChessCaptureBar.InitializeBar(ChessImages);              // Initialize chess bar

            // Show legal moves for selected piece
            ShowMoveHelp = true;             //
        }