public void RedoSets()
 {
     SetList.ForEach(thisTemp =>
     {
         thisTemp.HandList.ForEach(thisTile =>
         {
             thisTile.IsUnknown  = false; //to double check.
             thisTile.Drew       = false;
             thisTile.IsSelected = false;
         });
     });
 }
示例#2
0
        private PointInfo CalculatePoints(int player)
        {
            PointInfo output = new PointInfo();
            PointInfo temps;

            _model !.MainSets1 !.SetList.ForEach(thisSet =>
            {
                temps                 = thisSet.GetPointInfo(player);
                output.Points        += temps.Points;
                output.NumberOfCards += temps.NumberOfCards;
            });
            return(output);
        }
        public bool PlayedAtLeastOneFromHand()
        {
            CustomBasicList <int> tempList = new CustomBasicList <int>();

            SetList.ForEach(thisTemp =>
            {
                thisTemp.HandList.ForEach(thisTile =>
                {
                    tempList.Add(thisTile.Deck);
                });
            });
            TileRummySaveInfo saveRoot = cons !.Resolve <TileRummySaveInfo>();

            foreach (var thisIndex in saveRoot.YourTiles)
            {
                if (tempList.Any(items => items == thisIndex))
                {
                    return(true);
                }
            }
            return(false);
        }