コード例 #1
0
ファイル: PartialGridWPool.cs プロジェクト: Gothen111/2DWorld
 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
ファイル: DynamicGrid.cs プロジェクト: Gothen111/2DWorld
 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
ファイル: DynamicGridWPool.cs プロジェクト: Gothen111/2DWorld
 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;
 }
コード例 #4
0
ファイル: PartialGridWPool.cs プロジェクト: Gothen111/2DWorld
 public void SetGridRect(GridRect iGridRect)
 {
     m_gridRect = iGridRect;
 }
コード例 #5
0
ファイル: GridRect.cs プロジェクト: Gothen111/2DWorld
 public bool Equals(GridRect p)
 {
     // Return true if the fields match:
     return (minX == p.minX) && (minY == p.minY) && (maxX == p.maxX) && (maxY == p.maxY);
 }