frontline refactoring

`FrontLine` is tightly coupled with `ConflictTheater`.
  Moved into the same module to prevent circular imports.

Moved `ConflictTheater.frontline_data` from class var
to instance var to allow save games to have different
versions of frontlines.
This commit is contained in:
walterroach
2020-11-15 21:22:13 -06:00
parent c20e9e19cb
commit c1f88b4a5f
12 changed files with 252 additions and 262 deletions

View File

@@ -104,7 +104,7 @@ class VisualGenerator:
if from_cp.is_global or to_cp.is_global:
continue
frontline = Conflict.frontline_position(from_cp, to_cp)
frontline = Conflict.frontline_position(from_cp, to_cp, self.game.theater)
if not frontline:
continue