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