protected void Reset(VehicleNode current, VehicleNode dest) { FrontPos = 0; RearPos = -Length; ClearOccupied(); Destination = dest; PrevNode = current; RearNode = current; NextNode = current; }
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); }
public void RemoveNode(VehicleNode node) => VehiclePaths.RemoveNode(node);
public Rail(VehicleNode source, VehicleNode dest) : base(source, dest) { }