Ejemplo n.º 1
0
 private void NewGame_OnClick(object sender, RoutedEventArgs e)
 {
     this._sea = new Sea();
     var board = new GameBoard(this._sea);
     this.Close();
     board.Show();
 }
        public BattleScreen(IPlayer player, IEnemy enemy, GameBoard board)
        {
            this.InitializeComponent();
            this.Player = player;
            this.Enemy = enemy;
            this.board = board;

            this.PopulateCharacterCell(player);
            this.PopulateCharacterCell(enemy);
            this.DrawCharactersStatistic();

            this.Skill1.Content = player.Skills[0].Name;
            this.Skill2.Content = player.Skills[1].Name;
            this.Skill3.Content = player.Skills[2].Name;
            this.Skill4.Content = player.Skills[3].Name;
        }