Player.cs 782 B

12345678910111213141516171819202122232425262728293031323334
  1. namespace YJMPD_UWP.Model.Object
  2. {
  3. public class Player
  4. {
  5. public string Username { get; private set; }
  6. public double PointsTotal { get; private set; }
  7. public double Points { get; private set; }
  8. public Player(string username)
  9. {
  10. Username = username;
  11. Points = 0;
  12. PointsTotal = 0;
  13. }
  14. public Player(string username, double pointstotal)
  15. {
  16. Username = username;
  17. PointsTotal = pointstotal;
  18. Points = 0;
  19. }
  20. public void Reset()
  21. {
  22. Points = 0;
  23. }
  24. public void Update(double pointstotal, double points)
  25. {
  26. PointsTotal = pointstotal;
  27. Points = points;
  28. }
  29. }
  30. }