Example #1
0
        public void ToFight()
        {
            gameFightController = new GameFightController(new GameModel(model.Knights)
            {
                myTower = model.TowerType, UsersGold = model.GoldRest
            });

            GameFight MyMenu1 = new GameFight(gameFightController);

            MyMenu1.ShowDialog();
        }
Example #2
0
 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();
 }