コード例 #1
0
ファイル: PartialGridWPool.cs プロジェクト: sbrot92/cs3152
 public PartialGridWPool(NodePool iNodePool, GridRect? iGridRect = null)
     : base()
 {
     if (iGridRect == null)
         m_gridRect = new GridRect();
     else
         m_gridRect = iGridRect.Value;
     m_nodePool = iNodePool;
 }
コード例 #2
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);
 }
コード例 #3
0
ファイル: DynamicGrid.cs プロジェクト: sbrot92/cs3152
 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);
 }
コード例 #4
0
ファイル: DynamicGridWPool.cs プロジェクト: sbrot92/cs3152
 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;
 }
コード例 #5
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;
 }
コード例 #6
0
        public override bool Equals(System.Object obj)
        {
            if (!(obj is 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));
        }
コード例 #7
0
 public PartialGridWPool(NodePool iNodePool, GridRect?iGridRect = null)
     : base()
 {
     if (iGridRect == null)
     {
         m_gridRect = new GridRect();
     }
     else
     {
         m_gridRect = iGridRect.Value;
     }
     m_nodePool = iNodePool;
 }
コード例 #8
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);
 }
コード例 #9
0
 public BaseGrid(BaseGrid b)
 {
     m_gridRect = new GridRect(b.m_gridRect);
     width      = b.width;
     height     = b.height;
 }
コード例 #10
0
 public BaseGrid()
 {
     m_gridRect = new GridRect();
 }
コード例 #11
0
 public BaseGrid(BaseGrid b)
 {
     MGridRect = new GridRect(b.MGridRect);
     Width     = b.Width;
     Height    = b.Height;
 }
コード例 #12
0
ファイル: BaseGrid.cs プロジェクト: OpenNos/OpenNos
 public BaseGrid(BaseGrid b)
 {
     MGridRect = new GridRect(b.MGridRect);
     Width = b.Width;
     Height = b.Height;
 }
コード例 #13
0
ファイル: BaseGrid.cs プロジェクト: OpenNos/OpenNos
 public BaseGrid()
 {
     MGridRect = new GridRect();
 }
コード例 #14
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));
 }
コード例 #15
0
ファイル: PartialGridWPool.cs プロジェクト: sbrot92/cs3152
 public void SetGridRect(GridRect iGridRect)
 {
     m_gridRect = iGridRect;
 }
コード例 #16
0
 public BaseGrid()
 {
     MGridRect = new GridRect();
 }
コード例 #17
0
 public void SetGridRect(GridRect iGridRect)
 {
     m_gridRect = iGridRect;
 }
コード例 #18
0
 public void SetGridRect(GridRect iGridRect)
 {
     m_gridRect = iGridRect;
     updateNodes();
 }