コード例 #1
0
 public int TopRight()
 {
     if (topRight == -2)
     {
         topRight = PowderSystemUtils.GetPowderIndex(ref positions, p.coord.x + 1, p.coord.y + 1);
     }
     return(topRight);
 }
コード例 #2
0
 public int Top()
 {
     if (top == -2)
     {
         top = PowderSystemUtils.GetPowderIndex(ref positions, p.coord.x, p.coord.y + 1);
     }
     return(top);
 }
コード例 #3
0
 public int BottomRight()
 {
     if (bottomRight == -2)
     {
         bottomRight = PowderSystemUtils.GetPowderIndex(ref positions, p.coord.x + 1, p.coord.y - 1);
     }
     return(bottomRight);
 }
コード例 #4
0
 public int Bottom()
 {
     if (bottom == -2)
     {
         bottom = PowderSystemUtils.GetPowderIndex(ref positions, p.coord.x, p.coord.y - 1);
     }
     return(bottom);
 }
コード例 #5
0
 public int Right()
 {
     if (right == -2)
     {
         right = PowderSystemUtils.GetPowderIndex(ref positions, p.coord.x + 1, p.coord.y);
     }
     return(right);
 }
コード例 #6
0
 public int Left()
 {
     if (left == -2)
     {
         left = PowderSystemUtils.GetPowderIndex(ref positions, p.coord.x - 1, p.coord.y);
     }
     return(left);
 }