/// <summary> /// Constructor for filling the world with starting objects and defining the world spesific grid. /// </summary> public World() { Object3D robot1 = CreateObject(20, 0, -7, "Robot"); Object3D robot2 = CreateObject(20, 0, -5, "Robot"); Object3D robot3 = CreateObject(20, 0, -3, "Robot"); Object3D robot4 = CreateObject(20, 0, -1, "Robot"); Object3D robot5 = CreateObject(20, 0, 1, "Robot"); Object3D robot6 = CreateObject(20, 0, 3, "Robot"); Object3D robot7 = CreateObject(20, 0, 5, "Robot"); Object3D robot8 = CreateObject(20, 0, 7, "Robot"); Object3D refinery = CreateObject(-25, 0, -1, "Refinery"); SetInboundTimer(new ExportVehicleRequest(0, -35)); SetInboundTimer(new ImportVehicleRequest(600, 0, 34, 0, 0.5 * Math.PI, 0)); LoadGrid(); //for debug: //showGrid = true; //((Robot)robot1).SetIsDone(); //((Robot)robot1).GiveTask(new RobotTask(new DijkstraPathFinding(new double[] { 1, 1 }, new double[] { -7, -3 }, _nodeGrid).GetPath(), new DijkstraPathFinding(new double[] { -7, -3 }, new double[] { 1, 1 }, _nodeGrid).GetPath(), (Crate)crate, (PickUpTarget)_nodeGrid.nodes[50], (DropOffTarget)refinery)); }
public DeleteModel3DCommand(Models.Object3D parameters) : base("delete", parameters) { }
public UpdateModel3DCommand(Models.Object3D parameters) : base("update", parameters) { }
public Model3DCommand(string type, Models.Object3D parameters) : base(type, parameters) { }