Clean up one frontline bounds user.

This commit is contained in:
Dan Albert
2022-09-11 14:45:50 -07:00
committed by Raffson
parent 8af2d888d4
commit aeed7fd42a
2 changed files with 12 additions and 6 deletions

View File

@@ -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__(