SweeperLibrary/GameView.cs
(开头部分) 15KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Drawing.Imaging;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;
using SweeperLibrary.Properties;
using Timer = System.Threading.Timer;
namespace SweeperLibrary
{
public delegate void OnGameOverDelegate();
public delegate void OnShowANumberDelegate();
public delegate void OnPublishGameTimeDelegate(string timeDescription);
public partial class GameView : UserControl
{
/// <summary>
/// 游戏结束事件
/// </summary>
public event OnGameOverDelegate OnGameOverEvent;
/// <summary>
/// 当一个格子被点击时,显示当前数字的事件
/// </summary>
public event OnShowANumberDelegate OnShowANumberEvent;
/// <summary>
/// 发布当前游戏的时间
/// </summary>
public event OnPublishGameTimeDelegate OnPublishGameTimeEvent;
/// <summary>
/// 游戏绘制地图的每个格子的大小
/// </summary>
public static readonly int CellSize = 40;
/// <summary>
/// 游戏规模N*N
/// </summary>
public static readonly int GameCellCount = 10;
/// <summary>
/// 移动方向坐标点改变的数组
/// </summary>
public static readonly int[][] MoveDirectionPoints = {
new[]{-1, -1},
new[] {0, -1},
new[] {1, -1},
new[] {1, 0},
new[] {1, 1},
new[] {0, 1},
后面还有 352 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。