コード例 #1
0
ファイル: Pathing.cs プロジェクト: hbloom1783/SRPG-Demo
 public static bool CanEnter(
     this MapUnit unit,
     HexCoords loc)
 {
     if (!map.InBounds(loc))
     {
         return(false);
     }
     else
     {
         return(unit.CanEnter(map[loc]));
     }
 }
コード例 #2
0
ファイル: Pathing.cs プロジェクト: hbloom1783/SRPG-Demo
 public static int CostToEnter(
     this MapUnit unit,
     MapCell cell)
 {
     if (unit.CanEnter(cell))
     {
         return(1);
     }
     else
     {
         return(10000);
     }
 }