Separate combat as a distinct flight state.

Will be used later to simulate combat.

https://github.com/dcs-liberation/dcs_liberation/issues/1680
This commit is contained in:
Dan Albert
2021-11-07 12:17:05 -08:00
parent d9108a7ca6
commit ce4628b64f
11 changed files with 179 additions and 67 deletions

View File

@@ -151,5 +151,10 @@ class Flight:
def on_game_tick(self, time: datetime, duration: timedelta) -> None:
self.state.on_game_tick(time, duration)
def should_halt_sim(self, enemy_aircraft_coverage: AircraftEngagementZones) -> bool:
return self.state.should_halt_sim(enemy_aircraft_coverage)
def check_for_combat(
self, enemy_aircraft_coverage: AircraftEngagementZones
) -> None:
self.state.check_for_combat(enemy_aircraft_coverage)
def should_halt_sim(self) -> bool:
return self.state.should_halt_sim()