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); }
public static float CostEstimate(IQPathTileScript aa, IQPathTileScript bb) { return(Distance((HexScript)aa, (HexScript)bb)); }
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)); }