Move frozen combat handling out of MapModel.

This commit is contained in:
Dan Albert
2022-02-19 13:50:59 -08:00
parent 2168143fea
commit 09457d8aab
17 changed files with 140 additions and 136 deletions

View File

@@ -16,7 +16,6 @@ from PySide2.QtWebEngineWidgets import (
from game import Game
from qt_ui.models import GameModel
from qt_ui.simcontroller import SimController
from .model import MapModel
@@ -37,13 +36,11 @@ class LoggingWebPage(QWebEnginePage):
class QLiberationMap(QWebEngineView):
def __init__(
self, game_model: GameModel, sim_controller: SimController, parent
) -> None:
def __init__(self, game_model: GameModel, parent) -> None:
super().__init__(parent)
self.game_model = game_model
self.setMinimumSize(800, 600)
self.map_model = MapModel(game_model, sim_controller)
self.map_model = MapModel(game_model)
self.channel = QWebChannel()
self.channel.registerObject("game", self.map_model)