mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
17 lines
527 B
Python
17 lines
527 B
Python
import typing
|
|
import dcs
|
|
|
|
from .controlpoint import *
|
|
|
|
class ConflictTheater:
|
|
controlpoints = [] # type: typing.Collection[ControlPoint]
|
|
|
|
def add_controlpoint(self, point: ControlPoint, connected_to: typing.Collection[ControlPoint]):
|
|
for connected_point in connected_to:
|
|
point.connect(to=connected_point)
|
|
|
|
self.controlpoints.append(point)
|
|
|
|
def player_bases(self) -> typing.Collection[ControlPoint]:
|
|
return [point for point in self.controlpoints if point.captured and point.base]
|