Esempio n. 1
0
 /// <summary>
 /// Make checker unselected
 /// </summary>
 public void Unselect()
 {
     CheckerGraphicalImplementation.ChancheBgColor(Color.Transparent);
     foreach (Move move in AllowedMoves)
     {
         move.ToCell.ChangeBgColor(Color.Gray);
         move.ToCell.Click -= move.Do;
         move.ToCell.Click -= move.AddSelfToGameMoveList;
     }
     GameDataHandler.Selected = null;
 }
Esempio n. 2
0
 /// <summary>
 /// Make checker selected
 /// </summary>
 private void Select()
 {
     CheckerGraphicalImplementation.ChancheBgColor(Color.Khaki);
     foreach (Move move in AllowedMoves)
     {
         move.ToCell.ChangeBgColor(Color.BlueViolet);
         move.ToCell.Click += move.Do;
         move.ToCell.Click += move.AddSelfToGameMoveList;
     }
     GameDataHandler.Selected = this;
 }