예제 #1
0
        public override async Task SetUpGameAsync(bool isBeginning)
        {
            LoadControls();
            if (FinishUpAsync == null)
            {
                throw new BasicBlankException("The loader never set the finish up code.  Rethink");
            }

            SaveRoot !.LoadMod(_model);
            _model.PrivateTrain1 !.HandList.Clear(); //i think
            SaveRoot.FirstPlayerPlayed    = 0;
            SaveRoot.ImmediatelyStartTurn = true;
            ClearBoneYard();
            if (isBeginning == false)
            {
                _model.TrainStation1 !.NewRound();
            }
            else
            {
                _model.TrainStation1 !.StartRound();
            }
            PassDominos();
            if (isBeginning)
            {
                SingleInfo = PlayerList !.GetSelf();
                SingleInfo.MainHandList.Sort();
                Aggregator.Subscribe(SingleInfo);                                    //i think
            }
            PlayerList !.ForEach(thisPlayer => thisPlayer.LongestTrainList.Clear()); //just in case.
            SingleInfo = PlayerList.GetSelf();
            _model.UpdateCount(SingleInfo);                                          //try this too.
            SingleInfo = PlayerList.GetWhoPlayer();

            await FinishUpAsync(isBeginning);
        }
 protected override Task StartSetUpAsync(bool isBeginning)
 {
     if (isBeginning)
     {
         CreateLifeStories(); //hopefully doing here is fine (not sure).
     }
     else
     {
         PlayerList !.ForEach(thisPlayer => thisPlayer.LifeStory !.HandList.Clear());
     }
     SaveRoot !.ImmediatelyStartTurn = true;
     SaveRoot.YearList.Clear();
     PlayerList !.ForEach(thisPlayer => thisPlayer.Points = 0);
     return(base.StartSetUpAsync(isBeginning));
 }
        public void UpdateBoard()
        {
            ThreeLetterFunSaveInfo saveroot = cons !.Resolve <ThreeLetterFunSaveInfo>();

            if (saveroot.TileList.Count == 0)
            {
                HandList.Clear();
                return;
            }
            CustomBasicList <TileInformation> ThisList = new CustomBasicList <TileInformation>
            {
                saveroot.TileList.First(), saveroot.TileList[1]
            };

            HandList.ReplaceRange(ThisList);
        }
예제 #4
0
 public void RemoveCards()
 {
     HandList.Clear();
     ScrollToBottom();
 }
예제 #5
0
 public void ClearDiscardList()
 {
     HandList.Clear();
 }
예제 #6
0
 public void RemoveCards()
 {
     HandList.Clear();
 }
예제 #7
0
 public void ClearBoard() => HandList.Clear();