Added coastal defenses sites generator for Iran and China.

This commit is contained in:
Khopa
2021-02-05 00:15:06 +01:00
committed by Simon Clark
parent c5ae872787
commit 6a74c3faeb
23 changed files with 212 additions and 65 deletions

View File

@@ -0,0 +1,16 @@
from dcs import Point
class PointWithHeading(Point):
def __init__(self):
super(PointWithHeading, self).__init__(0, 0)
self.heading = 0
@staticmethod
def from_point(point: Point, heading: int):
p = PointWithHeading()
p.x = point.x
p.y = point.y
p.heading = heading
return p