Player.cs 969 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #region File Description
  2. //-----------------------------------------------------------------------------
  3. // Player.cs
  4. //
  5. // Microsoft XNA Community Game Platform
  6. // Copyright (C) Microsoft Corporation. All rights reserved.
  7. //-----------------------------------------------------------------------------
  8. #endregion
  9. #region Using Statements
  10. using System;
  11. using System.Collections.Generic;
  12. using System.Text;
  13. #endregion
  14. namespace CardsFramework
  15. {
  16. /// <summary>
  17. /// Represents base player to be extended by inheritance for each
  18. /// card game.
  19. /// </summary>
  20. public class Player
  21. {
  22. #region Property
  23. public string Name { get; set; }
  24. public CardsGame Game { get; set; }
  25. public Hand Hand { get; set; }
  26. #endregion
  27. public Player(string name, CardsGame game)
  28. {
  29. Name = name;
  30. Game = game;
  31. Hand = new Hand();
  32. }
  33. }
  34. }