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