12-游戏设计/华容道/HuaRongDao/Form1.cs

(开头部分) 27KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace HuaRongDao
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        //private Panel pl;//记录选中的控件ID

        //private void Form1_Load(object sender, EventArgs e)
        //{
        //    //初始化时设置各个位置的可用状态
        //    PlState[0, 0] = PlState[0, 1] = PlState[0, 2] = PlState[0, 3] =
        //        PlState[1, 0] = PlState[1, 1] = PlState[1, 2] = PlState[1, 3] =
        //        PlState[2, 0] = PlState[2, 1] = PlState[2, 2] = PlState[2, 3] =
        //        PlState[3, 0] = PlState[3, 1] = PlState[3, 2] = PlState[3, 3] =
        //        PlState[4, 0] = PlState[4, 3] = true;
        //}

        ////初始化各人物方格位置
        //private void button1_Click(object sender, EventArgs e)
        //{
        //    //设置各方格的初始图片
        //    panel1.BackgroundImage = (Image)(Properties.Resources._003);
        //    panel2.BackgroundImage = (Image)(Properties.Resources._001);
        //    panel3.BackgroundImage = (Image)(Properties.Resources._004);
        //    panel4.BackgroundImage = (Image)(Properties.Resources._005);
        //    panel5.BackgroundImage = (Image)(Properties.Resources._002);
        //    panel6.BackgroundImage = (Image)(Properties.Resources._006);
        //    panel7.BackgroundImage = (Image)(Properties.Resources._007);
        //    panel8.BackgroundImage = (Image)(Properties.Resources._008);
        //    panel9.BackgroundImage = (Image)(Properties.Resources._009);
        //    panel10.BackgroundImage = (Image)(Properties.Resources._010);
        //    //设置各方格的初始位置
        //    panel1.Location = position[0, 0];
        //    panel2.Location = position[0, 1];
        //    panel3.Location = position[0, 3];
        //    panel4.Location = position[2, 0];
        //    panel5.Location = position[2, 1];
        //    panel6.Location = position[2, 3];
        //    panel7.Location = position[3, 1];
        //    panel8.Location = position[3, 2];
        //    panel9.Location = position[4, 0];
        //    panel10.Location = position[4, 3];
        //    PlState[4, 0] = PlState[4, 3] = true;   //设置最后一行的首尾位置不可用
        //    PlState[4, 1] = PlState[4, 2] = false;  //设置最后一行的中间两个位置可用
        //}

        //#region 赵云
后面还有 545 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读 AI

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。