Cells/PaintedCell.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Drawing.Text;
namespace VS2048
{
public class PaintedCell : ICell
{
private int _wid = 0;
private int _hei = 0;
private int _left = 0;
private int _top = 0;
private int _pWid = 0;
private int _factor = 0;///
private Random _rdm = null;
private bool _currMerged = false;
private string _disNum = "0";
private Image _backImg = null;
private Font _txtfont = new Font("Candara'Century Gothic", 16, FontStyle.Bold);//'Candara'Century Gothic'Courier'
private Color _backColor = Color.Snow;
private Color _textColor = Color.WhiteSmoke;
private CellCoordinate _cellLoc;
private CellShape _shape = CellShape.Ellipse;
public CellShape Shape
{
get { return _shape; }
set { _shape = value; }
}
public Rectangle DisplayRect
{
get
{
return new Rectangle(Left, Top, Width, Height);
}
}
public int Width
{
get { return _wid; }
set { _wid = value; }
}
public int Height
{
get { return _hei; }
set { _hei = value; }
}
public int ParentWidth
{
get { return _pWid; }
set { _pWid = value; }
}
后面还有 99 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
