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