public ZeebotSystem(MapContext mapContext, int nrZeebots) { this.mapContext = mapContext; coordinateSystem = new CoordinateSystem(); zeebots = new List<Zeebot>(nrZeebots); for (int i = 0; i < nrZeebots; i++) { Zeebot zeebot = new Zeebot(); zeebots.Add(zeebot); // Add to real map. zeebot.MapContext = mapContext; mapContext.AddZeebot(zeebot); // Add to calculated map. zeebot.CoordinateSystem = coordinateSystem; coordinateSystem.AddZeebot(zeebot); } }
public void SetUp() { coordinateSystem = new CoordinateSystem(); mapContext = new MapContext(MapBuilder.Build("Fixtures/map.in")); }