public InBounds ( int x, int y, int z = 1 ) : bool | ||
x | int | |
y | int | |
z | int | |
return | bool |
public bool InBounds(int x, int y, int z = 1)
{
return !(y < 1 || y >= Height - 1 || x < 1 || x >= Width - 1 || z > 1 || z < 0);
}