mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Show convoys on the map.
This commit is contained in:
@@ -711,6 +711,12 @@ class ControlPoint(MissionTarget, ABC):
|
||||
def has_active_frontline(self) -> bool:
|
||||
return any(not c.is_friendly(self.captured) for c in self.connected_points)
|
||||
|
||||
def front_is_active(self, other: ControlPoint) -> bool:
|
||||
if other not in self.connected_points:
|
||||
raise ValueError
|
||||
|
||||
return self.captured != other.captured
|
||||
|
||||
|
||||
class Airfield(ControlPoint):
|
||||
def __init__(
|
||||
|
||||
@@ -42,6 +42,9 @@ class RoadTransferOrder(TransferOrder):
|
||||
supply_route = SupplyRoute.for_control_point(self.position)
|
||||
return supply_route.shortest_path_between(self.position, self.destination)
|
||||
|
||||
def next_stop(self) -> ControlPoint:
|
||||
return self.path()[0]
|
||||
|
||||
|
||||
class PendingTransfers:
|
||||
def __init__(self) -> None:
|
||||
|
||||
Reference in New Issue
Block a user