Esempio n. 1
0
        public SingleGameUI(SinglePlayerGame game)
        {
            InitializeComponent();

            this.game = game;
            this.PlayerName.Content = this.game.Player.PlayerName;
            this.Category.Content   = this.game.Category.CategoryName;

            if (this.game.Word.GameWord.Contains(' '))
            {
                this.WordLength.Content = this.game.Word.GameWord.Length - 1;
            }
            else
            {
                this.WordLength.Content = this.game.Word.GameWord.Length;
            }

            this.wordBuilder = new WordBuilder(this.WordPanel, this.game.Word);
            this.hangman     = new Hangman(this.HangmanDrawing);
            this.letterCount = 0;

            wordBuilder.BuildWord(this.game.Word);
        }