コード例 #1
0
ファイル: CellManager.cs プロジェクト: yqxflong/DashFire
        public ICellMapView GetCellMapView(int radius)
        {
            ICellMapView view = null;

            if (cell_map_views_.ContainsKey(radius))
            {
                view = cell_map_views_[radius];
            }
            else
            {
                view = new CellMapView(this, radius);
                cell_map_views_.Add(radius, view);
            }
            return(view);
        }
コード例 #2
0
 public List <CellPos> GetCellAdjacent(CellPos center)
 {
     return(CellMapView.GetCellAdjacent(center, m_MaxRowCount, m_MaxColCount));
 }
コード例 #3
0
ファイル: CellManager.cs プロジェクト: yqxflong/DashFire
 public List <CellPos> GetCellAdjacent(CellPos center)
 {
     return(CellMapView.GetCellAdjacent(center, max_row_, max_col_));
 }
コード例 #4
0
 public CellPos GetFirstWalkableCell(Vector3 from, Vector3 to)
 {
     return(CellMapView.GetFirstWalkableCell(this, from, to));
 }