public float AggregateCostToEnter(float costSoFar, IQPathTileScript sourceTile, IQPathUnitScript theUnit)
 {
     // TODO: We are ignoring source tile right now, this will have to change when
     // we have rivers.
     if (StateManagerScript.instance.aiTurn == true)
     {
         return(((AIUnitScript)theUnit).AggregateTurnsToEnterHex(this, costSoFar));
     }
     else
     {
         return(((UnitScript)theUnit).AggregateTurnsToEnterHex(this, costSoFar));
     }
 }
 public float CostToEnterHex(IQPathTileScript sourceTile, IQPathTileScript destinationTile)
 {
     return(1);
 }
Ejemplo n.º 3
0
 public static float CostEstimate(IQPathTileScript aa, IQPathTileScript bb)
 {
     return(Distance((HexScript)aa, (HexScript)bb));
 }
Ejemplo n.º 4
0
 public float AggregateCostToEnter(float costSoFar, IQPathTileScript sourceTile, IQPathUnitScript theUnit)
 {
     // TODO: We are ignoring source tile right now, this will have to change when
     // we have rivers.
     return(((UnitScript)theUnit).AggregateTurnsToEnterHex(this, costSoFar));
 }