예제 #1
0
 protected void Reset(VehicleNode current, VehicleNode dest)
 {
     FrontPos = 0;
     RearPos  = -Length;
     ClearOccupied();
     Destination = dest;
     PrevNode    = current;
     RearNode    = current;
     NextNode    = current;
 }
예제 #2
0
        public Route AddRoute(VehicleNode start, VehicleNode dest, Item item)
        {
            var route = new Route(this);

            route.AddDestination(start, Route.ActionType.Pickup, item);
            route.AddDestination(dest, Route.ActionType.Dropoff, item);
            route.Pathfind();
            AddRoute(route);

            return(route);
        }
예제 #3
0
 public void RemoveNode(VehicleNode node) => VehiclePaths.RemoveNode(node);
예제 #4
0
 public Rail(VehicleNode source, VehicleNode dest) : base(source, dest)
 {
 }