void GetAround(int x, int y, Direction dirction = Direction.Null, int flag = 1)【一个void语句 括号里是定义 int的定义】
{
if (starsColor[x, y] == StarColor.White)
return;
if (dirction == Direction.Null)
{
list.Clear(); 【list调用clear()函数,(.代表调用)】
list.Add(new StarInfo(x, y, starsColor[x, y], 1));【 new表示创建一个starinfo】
starsFlag[x, y] = 1;【= 表示赋值】
if (x == 0 && y == 0)【== 表示判断是否相等】
{
GetAround(x, y, Direction.Right);
......................
阅读全部 | 2016年12月24日 22:03