Ejemplo n.º 1
0
 public void SendOffer(NegotiationOffer offer)
 {
     if (NewOfferEvent != null)
     {
         NewOfferEvent(this, new OfferEventArgs(offer));
     }
 }
Ejemplo n.º 2
0
 public void OpponentOfferReceived(NegotiationOffer offer)
 {
     if (OfferReceivedEvent != null)
     {
         OfferReceivedEvent(this, new OfferEventArgs(offer));
     }
 }
Ejemplo n.º 3
0
        private int CalculateAcceptScore(SideConfig config, NegotiationOffer offer)
        {
            var variant = Domain.OwnerVariantDict[config.Side][config.Variant];

            return(offer.Offers.Sum(x => variant.Topics[x.Key].Options[x.Value].Score) + variant.TimeEffect * Domain.RoundsPassed(Status.RemainingTime));
        }
Ejemplo n.º 4
0
 public NegotiationViewModel()
 {
     Actions       = new List <NegotiationActionModel>();
     Offer         = new NegotiationOffer();
     OpponentOffer = new NegotiationOffer();
 }
Ejemplo n.º 5
0
 public OfferEventArgs(NegotiationOffer offer)
 {
     Offer = offer;
 }