Exemplo n.º 1
0
 /// <summary>
 /// Constructor for initializing the user control objects that will be used in the game.
 /// </summary>
 /// <param name="x">The x position</param>
 /// <param name="y">The y position</param>
 /// <param name="player">The name</param>
 public PlayerControl(double x, double y, Logic.Player player)
 {
     InitializeComponent();
     this.RenderTransform   = this.Transform(x, y);
     this.grpbPlayer.Header = player.Name;
     this.player            = player;
 }
Exemplo n.º 2
0
        public GameOver(Logic.Player player)
        {
            var winner = new KeyValuePair <int, string>(player.ScoreTotal, player.Name);

            InitializeComponent();
            this.HandleIO(winner);
            this.WriteWinner(winner);
            this.WindowStartupLocation = WindowStartupLocation.CenterScreen;
        }