コード例 #1
0
 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);
        }
コード例 #3
0
        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);
        }