waycost += Ai.MAX_BUILDING_WEALTH;
if (tile.tiletyp instanceof BuildingTyp) {
Building building = (Building) tile;
BuildingTyp buildingTyp = (BuildingTyp) tile.tiletyp;
float multiplier = 1;
if (building.team == null) {
multiplier = 1.5f;
} else if (building.team.equals(Game.blueTeam)) {