public void SendOffer(NegotiationOffer offer) { if (NewOfferEvent != null) { NewOfferEvent(this, new OfferEventArgs(offer)); } }
public void OpponentOfferReceived(NegotiationOffer offer) { if (OfferReceivedEvent != null) { OfferReceivedEvent(this, new OfferEventArgs(offer)); } }
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)); }
public NegotiationViewModel() { Actions = new List <NegotiationActionModel>(); Offer = new NegotiationOffer(); OpponentOffer = new NegotiationOffer(); }
public OfferEventArgs(NegotiationOffer offer) { Offer = offer; }