示例#1
0
 public int GetAge(Point pos)
 {
     return cellAge[(pos.X + width) % width, (pos.Y + height) % height];
 }
示例#2
0
 public void SetAge(Point pos, int age)
 {
     cellAge[(pos.X + width) % width, (pos.Y + height) % height] = age;
 }
示例#3
0
 public int GetAge(Point pos)
 {
     return GetAge(pos.X, pos.Y);
 }