public void ToFight() { gameFightController = new GameFightController(new GameModel(model.Knights) { myTower = model.TowerType, UsersGold = model.GoldRest }); GameFight MyMenu1 = new GameFight(gameFightController); MyMenu1.ShowDialog(); }
public GameFight(IGameFightController gameFightController) { this.gameFightController = gameFightController; gameModel = gameFightController.GetModel(); InitializeComponent(); logger = new Logger(); GetImages(); GetOpenImageOfKnight(); CurrentGold.Text = gameFightController.GetMyMoney().ToString(); Music(false); SetLifes(); SetTowerLife(); }