Backup/FrmConfig.cs

(开头部分) 4KB

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

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


namespace 推箱子游戏
{
    public partial class FrmConfig : Form
    {
    private enum Map_State {None=-1,Wall = 0, Worker, 
        Box, Passageway, Destination,WorkerInDest,RedBox };
    private Map_State m_now_Select;//当前选中的图标工具
    private Map_State[,] myArray=new Map_State[7,7] ;
    private int BlockSize = 50;

    public FrmConfig()
    {
        InitializeComponent();
    }

    private void FrmConfig_Load(object sender, EventArgs e)
    {
        ClearMap();
    }
    private void toolStripBtn_Wall_Click(object sender, EventArgs e)
    {
        //选中墙
        m_now_Select = Map_State.Wall;
    }
    private void toolStripBtn_Box_Click(object sender, EventArgs e)
    {
        //选中箱子
        m_now_Select = Map_State.Box;
    }

    private void toolStripBtn_Destination_Click(object sender, EventArgs e)
    {
        //选中目的地
        m_now_Select = Map_State.Destination;
    }
    private void toolStripBtn_Passageway_Click(object sender, EventArgs e)
    {
        //选中通道
        m_now_Select = Map_State.Passageway;
    }
    private void toolStripBtn_Worker_Click(object sender, EventArgs e)
    {
        //选中人
        m_now_Select = Map_State.Worker;
    }

    private void toolStripBtn_New_Click(object sender, EventArgs e)
    {
        ClearMap();
    }
后面还有 83 行代码,解锁后查看完整代码

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

AI 解读

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

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