예제 #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);
 }