Esempio n. 1
0
        public void AskForNewPathfinding(Point destinationPoint)
        {
            //clear drivingNodeList
            drivingNodeList.Clear();

            if (pathfindingJob != null)
            {
                pathfindingJob.CancelJob();
            }

            waitingOnNewPathfinding = true;
            //if we are driving it will have to be the next destination tilex?
            pathfindingJob = new Pathfinding(new Point(location.tileX, location.tileY), destinationPoint, vehicleParameters.vehicle);
            GameController.AddJob(pathfindingJob);
            //DoJobworker
        }