cell.cs

来自「c#网络编程及应用-刘瑞新」· CS 代码 · 共 58 行

CS
58
字号
using System;

namespace Game2DServer
{
	/// <summary>
	/// Cell 的摘要说明。
	/// </summary>
	public class Cell
	{
		public bool has_dot
		{
			get
			{
				return has_dot;
			}
			set
			{
				has_dot=value;
			}
		}
		public int color
		{
			get
			{
				return color;
			}
			set
			{
				color=value;
			}
		}
		public Cell()
		{
			//
			// TODO: 在此处添加构造函数逻辑
			//
		}

		private bool checkDot(int color)
		{
			if(this.has_dot) return true;
			else return false;
		}
		public void setDot(int color)
		{
			this.has_dot=true;
			this.color=color;
		}
		private void unsetDot(int color)
		{
			this.has_dot=false;
			this.color=color;
		}
	}


}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?