Exemplo n.º 1
0
 public GridRect(GridRect b)
 {
     minX = b.minX;
     minY = b.minY;
     maxX = b.maxX;
     maxY = b.maxY;
 }
Exemplo n.º 2
0
 public GridRect(GridRect b)
 {
     minX = b.minX;
     minY = b.minY;
     maxX = b.maxX;
     maxY = b.maxY;
 }
Exemplo n.º 3
0
 public PartialGridWPool(NodePool iNodePool, GridRect? iGridRect = null)
     : base()
 {
     if (iGridRect == null)
         m_gridRect = new GridRect();
     else
         m_gridRect = iGridRect.Value;
     m_nodePool = iNodePool;
 }
Exemplo n.º 4
0
        public override bool Equals(System.Object obj)
        {
            // Unlikely to compare incorrect type so removed for performance
            //if (!(obj.GetType() == typeof(GridRect)))
            //    return false;
            GridRect p = (GridRect)obj;

            // Return true if the fields match:
            return((minX == p.minX) && (minY == p.minY) && (maxX == p.maxX) && (maxY == p.maxY));
        }
Exemplo n.º 5
0
 public DynamicGrid(List <GridPos> iWalkableGridList = null)
     : base()
 {
     m_gridRect      = new GridRect();
     m_gridRect.minX = 0;
     m_gridRect.minY = 0;
     m_gridRect.maxX = 0;
     m_gridRect.maxY = 0;
     m_notSet        = true;
     buildNodes(iWalkableGridList);
 }
Exemplo n.º 6
0
 public DynamicGridWPool(NodePool iNodePool)
     : base()
 {
     m_gridRect = new GridRect();
     m_gridRect.minX = 0;
     m_gridRect.minY = 0;
     m_gridRect.maxX = 0;
     m_gridRect.maxY = 0;
     m_notSet = true;
     m_nodePool = iNodePool;
 }
Exemplo n.º 7
0
 public DynamicGrid(List<GridPos> iWalkableGridList = null)
     : base()
 {
     m_gridRect = new GridRect();
     m_gridRect.minX = 0;
     m_gridRect.minY = 0;
     m_gridRect.maxX = 0;
     m_gridRect.maxY = 0;
     m_notSet = true;
     buildNodes(iWalkableGridList);
 }
Exemplo n.º 8
0
 public DynamicGridWPool(NodePool iNodePool)
     : base()
 {
     m_gridRect      = new GridRect();
     m_gridRect.minX = 0;
     m_gridRect.minY = 0;
     m_gridRect.maxX = 0;
     m_gridRect.maxY = 0;
     m_notSet        = true;
     m_nodePool      = iNodePool;
 }
Exemplo n.º 9
0
 public PartialGridWPool(NodePool iNodePool, GridRect?iGridRect = null)
     : base()
 {
     if (iGridRect == null)
     {
         m_gridRect = new GridRect();
     }
     else
     {
         m_gridRect = iGridRect.Value;
     }
     m_nodePool = iNodePool;
 }
Exemplo n.º 10
0
 public BaseGrid(BaseGrid b)
 {
     m_gridRect = new GridRect(b.m_gridRect);
     width      = b.width;
     height     = b.height;
 }
Exemplo n.º 11
0
 public void SetGridRect(GridRect iGridRect)
 {
     m_gridRect = iGridRect;
 }
Exemplo n.º 12
0
 public void SetGridRect(GridRect iGridRect)
 {
     m_gridRect = iGridRect;
 }
Exemplo n.º 13
0
 public bool Equals(GridRect p)
 {
     // Return true if the fields match:
     return (minX == p.minX) && (minY == p.minY) && (maxX == p.maxX) && (maxY == p.maxY);
 }
Exemplo n.º 14
0
 public BaseGrid(BaseGrid b)
 {
     m_gridRect = new GridRect(b.m_gridRect);
     width = b.width;
     height = b.height;
 }
Exemplo n.º 15
0
 public bool Equals(GridRect p)
 {
     // Return true if the fields match:
     return((minX == p.minX) && (minY == p.minY) && (maxX == p.maxX) && (maxY == p.maxY));
 }