added building influence to pathfinder

This commit is contained in:
Chris Forbes
2009-10-13 18:21:57 +13:00
parent 24a6c798fa
commit c6e739d162
2 changed files with 10 additions and 6 deletions

View File

@@ -43,14 +43,14 @@ namespace OpenRa.Game
treeCache = new TreeCache(map);
foreach( TreeReference treeReference in map.Trees )
world.Add( new Actor( treeReference, treeCache, map.Offset ) );
pathFinder = new PathFinder(map, terrain.tileSet);
network = new Network();
world.Add( new Actor( treeReference, treeCache, map.Offset ) );
LocalPlayerBuildings = new BuildingInfluenceMap(world, LocalPlayer);
pathFinder = new PathFinder(map, terrain.tileSet, LocalPlayerBuildings);
network = new Network();
controller = new Controller(this); // CAREFUL THERES AN UGLY HIDDEN DEPENDENCY HERE STILL
worldRenderer = new WorldRenderer(renderer, this);
}