+)
{(new List lt; LogicCell gt; {SelectedCellsForWord [i]});
}=temp;
}
void AddCellToWordSelection (LogicCell logicCell)
{.Add (logicCell); (new List lt; LogicCell gt; () {logicCell}); (GetCurentSelectedWord ());
}
string GetCurentSelectedWord ()
{selectedWord=String.Empty; .ForEach (cell= gt; selectedWord +=cell.Letter); selectedWord;
}
void StopWordSelection ()
{(IsSelectedWordContainsSelectedCell ())
{();
}
{(GamePlayMessages.WordMustContainSelectedCell);
}
}
bool IsSelectedWordContainsSelectedCell ()
{(SelectedCellsForWord!=null)
{(SelectedCellsForWord.Count!=0)
{(selectedCell!=null)
{SelectedCellsForWord.Contains (selectedCell);
}
}
} false;
}
# region GamePlayAction
void CancelSelectedWord ()
{(); (SelectedCellsForWord);=null;=String.Empty; ();
}
void CancelLetter ()
{. Letter=String.Empty; (new List lt; LogicCell gt; {selectedCell});=null; ();
}
void AcceptLetter ()
{();
}
void AcceptWord ()
{. SetWordToPlayer (activePlayer, selectedWord); (); (SelectedCellsForWord);=null; (); ();
}
# endregion
# region SetGamePlayStage
void SetWordSelectionStage ()
{();=new List lt; LogicCell gt; ();=true; (String.Empty); (GamePlayMessages.SelectWord); (String.Empty);
}
void SetCellCelectionStage ()
{();=true; (activePlayer.Name); (GamePlayMessages.SelectCellForLetter); (String.Empty); (String.Empty);
}
private void SetAcceptLetterStage ()
{(); (); (selectedCell.Letter); (GamePlayMessages.AcceptLetter); (String.Empty);
}
void SetAcceptWordStage ()
{= false;=GetCurentSelectedWord (); (selectedWord); (String.Empty); (GamePlayMessages.AcceptWord); ();
}
# endregion
void SetNextActivePlayer ()
{index=Players.IndexOf (activePlayer); (index == (Players.Count - 1))
{= Players.First ();
}
{= Players [index + 1];
} (activePlayer.Name);
}
}
}