Exemplo n.º 1
0
        private bool IsInRange(GridIndex2D index)
        {
            int x = index.x;
            int z = index.z;

            if (x < 0)
            {
                return(false);
            }
            if (z < 0)
            {
                return(false);
            }

            if (x > this.SizeX - 1)
            {
                return(false);
            }
            if (z > this.SizeZ - 1)
            {
                return(false);
            }

            return(true);
        }
Exemplo n.º 2
0
 public Cell(GridIndex2D index)
 {
     this.index = index;
 }