예제 #1
0
        /// <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));
        }
예제 #2
0
 public DeleteModel3DCommand(Models.Object3D parameters) : base("delete", parameters)
 {
 }
예제 #3
0
 public UpdateModel3DCommand(Models.Object3D parameters) : base("update", parameters)
 {
 }
예제 #4
0
 public Model3DCommand(string type, Models.Object3D parameters) : base(type, parameters)
 {
 }