Exemplo n.º 1
0
 public BaseGrid(BaseGrid b)
 {
     m_gridRect = new GridCube(b.m_gridRect);
     width      = b.width;
     length     = b.length;
     height     = b.height;
 }
Exemplo n.º 2
0
 public GridCube(GridCube b)
 {
     minX = b.minX;
     minY = b.minY;
     minZ = b.minZ;
     maxX = b.maxX;
     maxY = b.maxY;
     maxZ = b.maxZ;
 }
Exemplo n.º 3
0
 public bool Equals(GridCube p)
 {
     if (ReferenceEquals(null, p))
     {
         return(false);
     }
     // Return true if the fields match:
     return((minX == p.minX) && (minY == p.minY) && (minZ == p.minZ) && (maxX == p.maxX) && (maxY == p.maxY) && (maxZ == p.maxZ));
 }
Exemplo n.º 4
0
 public DynamicGridWPool(NodePool iNodePool)
     : base()
 {
     m_gridRect      = new GridCube();
     m_gridRect.minX = 0;
     m_gridRect.minY = 0;
     m_gridRect.maxX = 0;
     m_gridRect.maxY = 0;
     m_gridRect.minZ = 0;
     m_gridRect.maxZ = 0;
     m_notSet        = true;
     m_nodePool      = iNodePool;
 }
Exemplo n.º 5
0
 public PartialGridWPool(NodePool iNodePool, GridCube iGridRect = null)
     : base()
 {
     if (iGridRect == null)
     {
         m_gridRect = new GridCube();
     }
     else
     {
         m_gridRect = iGridRect;
     }
     m_nodePool = iNodePool;
 }
Exemplo n.º 6
0
 public DynamicGrid(List <GridPos> iWalkableGridList = null)
     : base()
 {
     m_gridRect      = new GridCube();
     m_gridRect.minX = 0;
     m_gridRect.minY = 0;
     m_gridRect.minZ = 0;
     m_gridRect.maxX = 0;
     m_gridRect.maxY = 0;
     m_gridRect.maxZ = 0;
     m_notSet        = true;
     buildNodes(iWalkableGridList);
 }
Exemplo n.º 7
0
        public override bool Equals(System.Object obj)
        {
            // Unlikely to compare incorrect type so removed for performance
            //if (!(obj.GetType() == typeof(GridCube)))
            //    return false;
            GridCube p = (GridCube)obj;

            if (ReferenceEquals(null, p))
            {
                return(false);
            }
            // Return true if the fields match:
            return((minX == p.minX) && (minY == p.minY) && (minZ == p.minZ) && (maxX == p.maxX) && (maxY == p.maxY) && (maxZ == p.maxZ));
        }
Exemplo n.º 8
0
 public void SetGridRect(GridCube iGridRect)
 {
     m_gridRect = iGridRect;
 }
Exemplo n.º 9
0
 public BaseGrid()
 {
     m_gridRect = new GridCube();
 }