internal void pollState()
 {
     getServiceReady();
     try
     {
         MonopolyDealServiceReference.GuidBox thisClientGuidB = new MonopolyDealServiceReference.GuidBox();
         thisClientGuidB.guid = thisClientGuid;
         MonopolyDealServiceReference.GuidBox gameOnServiceGuidB = new MonopolyDealServiceReference.GuidBox();
         gameOnServiceGuidB.guid = gameOnServiceGuid;
         MonopolyDealServiceReference.PlayFieldModel pfm = monopolyDealService.pollStateMonopolyDeal(thisClientGuidB, gameOnServiceGuidB);
         CurrentPlayFieldModel = pfm;
         mainForm.drawField(CurrentPlayFieldModel);
         addToLog(pfm.currentPhase.ToString());
         foreach (MonopolyDealServiceReference.PlayerModel p in pfm.playerModels)
         {
             if (p.isThisPlayersTurn)
             {
                 addToLog("Player: " + p.name + "'s Turn");
             }
         }
     }
     catch (Exception ex)
     {
         addToLog(ex.ToString());
         //monopolyDealService.Close();
     }
 }
 internal void pollState()
 {
     getServiceReady();
     try
     {
         MonopolyDealServiceReference.GuidBox thisClientGuidB = new MonopolyDealServiceReference.GuidBox();
         thisClientGuidB.guid = thisClientGuid;
         MonopolyDealServiceReference.GuidBox gameOnServiceGuidB = new MonopolyDealServiceReference.GuidBox();
         gameOnServiceGuidB.guid = gameOnServiceGuid;
         MonopolyDealServiceReference.PlayFieldModel pfm = monopolyDealService.pollStateMonopolyDeal(thisClientGuidB, gameOnServiceGuidB);
         CurrentPlayFieldModel = pfm;
         mainForm.drawField(CurrentPlayFieldModel);
         addToLog(pfm.currentPhase.ToString());
         foreach (MonopolyDealServiceReference.PlayerModel p in pfm.playerModels)
         {
             if (p.isThisPlayersTurn)
             {
                 addToLog("Player: " + p.name + "'s Turn");
             }
         }
     }
     catch (Exception ex)
     {
         addToLog(ex.ToString());
         //monopolyDealService.Close();
     }
 }
Esempio n. 3
0
 public static MonopolyDealServiceReference.GuidBox boxGuid(this Guid guid)
 {
     MonopolyDealServiceReference.GuidBox gb = new MonopolyDealServiceReference.GuidBox();
     gb.guid = guid;
     return gb;
 }
Esempio n. 4
0
 public static MonopolyDealServiceReference.GuidBox boxGuid(this Guid guid)
 {
     MonopolyDealServiceReference.GuidBox gb = new MonopolyDealServiceReference.GuidBox();
     gb.guid = guid;
     return(gb);
 }