Exemplo n.º 1
0
 ChartStatic[] DetermineChartCandidates(Maze maze, Coord cell)
 {
     if (maze.HasInfo(cell))
     {
         MetaData cellInfo = maze.GetInfo(cell);
         if (cellInfo.ContainsKey(entrance))
         {
             return(entranceCharts);
         }
         else if (cellInfo.ContainsKey(exit))
         {
             return(exitCharts);
         }
     }
     return(fillerCharts);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Does this chart have metadata with this key?
 /// </summary>
 public bool Filter(string key)
 {
     return(metaData.ContainsKey(key));
 }