Guest User

Untitled

a guest
Apr 22nd, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. /// <summary>
  2. /// Creates the dimensions for the cases
  3. /// </summary>
  4. public Case()
  5. {
  6. MaximumSize = new Size(50, 50);
  7. MinimumSize = new Size(50, 50);
  8. }
  9.  
  10. /// <summary>
  11. /// Creates the background for the cases
  12. /// </summary>
  13. public enum DifferentCase
  14. {
  15. Dark,
  16. Pale,
  17. Brown
  18. }
  19.  
  20. /// <summary>
  21. /// Creates the tokens
  22. /// </summary>
  23. public enum Token
  24. {
  25. Nothing,
  26. White,
  27. Black
  28. }
  29.  
  30. public DifferentCase ColorCase { get; set; }
  31.  
  32. public Token ColorToken { get; set; }
  33.  
  34. public bool IsBlack { get; set; }
  35.  
  36. private void CheckPoints(Case cases)
  37. {
  38. foreach (Case case_ in cases.Controls)
  39. {
  40. if (case_.ColorToken == Case.Token.Black)
  41. {
  42. _player1Points++;
  43. lbl_player1Points.Text = _player1Points.ToString();
  44. }
  45. else if (case_.ColorToken == Case.Token.White)
  46. {
  47. _player2Points++;
  48. lbl_player2Points.Text = _player2Points.ToString();
  49. }
  50.  
  51. }
  52. }
Add Comment
Please, Sign In to add comment