dcs-retribution/game/point_with_heading.py
2021-07-07 17:41:29 -07:00

16 lines
361 B
Python

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