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();
     }
 }
Exemplo n.º 3
0
 public static MonopolyDealServiceReference.GuidBox boxGuid(this Guid guid)
 {
     MonopolyDealServiceReference.GuidBox gb = new MonopolyDealServiceReference.GuidBox();
     gb.guid = guid;
     return gb;
 }
Exemplo n.º 4
0
 public static MonopolyDealServiceReference.GuidBox boxGuid(this Guid guid)
 {
     MonopolyDealServiceReference.GuidBox gb = new MonopolyDealServiceReference.GuidBox();
     gb.guid = guid;
     return(gb);
 }