mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Clean up one frontline bounds user.
This commit is contained in:
parent
8af2d888d4
commit
aeed7fd42a
@ -81,12 +81,8 @@ class Builder(IBuilder[CasFlightPlan, CasLayout]):
|
||||
location, self.theater, self.coalition.game.settings
|
||||
)
|
||||
ingress = bounds.left_position
|
||||
center = ingress.point_from_heading(
|
||||
bounds.heading_from_left_to_right.degrees, bounds.length / 2
|
||||
)
|
||||
egress = ingress.point_from_heading(
|
||||
bounds.heading_from_left_to_right.degrees, bounds.length
|
||||
)
|
||||
center = bounds.center
|
||||
egress = bounds.right_position
|
||||
|
||||
ingress_distance = ingress.distance_to_point(self.flight.departure.position)
|
||||
egress_distance = egress.distance_to_point(self.flight.departure.position)
|
||||
|
||||
@ -19,6 +19,16 @@ class FrontLineBounds:
|
||||
heading_from_left_to_right: Heading
|
||||
length: int
|
||||
|
||||
@property
|
||||
def center(self) -> Point:
|
||||
return (self.left_position + self.right_position) / 2
|
||||
|
||||
@property
|
||||
def right_position(self) -> Point:
|
||||
return self.left_position.point_from_heading(
|
||||
self.heading_from_left_to_right.degrees, self.length
|
||||
)
|
||||
|
||||
|
||||
class FrontLineConflictDescription:
|
||||
def __init__(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user