Represents creatable and joinable game offers.
Example #1
0
 public JoinOffer(GameOffer game_offer, string joiner, Window window)
     : base(game_offer.Creator, game_offer.GameType, game_offer.MatchTo, game_offer.Stake, game_offer.Limit, DateTime.UtcNow)
 {
     this.joiner = joiner;
     this.window = window;
 }
Example #2
0
 /// <summary>
 /// Creates a deep-copy from existing offer and updates it's time stamp.
 /// </summary>
 /// <param name="offer"></param>
 /// <returns></returns>
 public static GameOffer FromOffer(GameOffer offer)
 {
     return new GameOffer(offer.creator, offer.game_type, offer.match_to, offer.stake, offer.limit);
 }
Example #3
0
 public JoinOffer(GameOffer game_offer, string joiner, Window window)
     : base(game_offer.Creator, game_offer.GameType, game_offer.MatchTo, game_offer.Stake, game_offer.Limit, DateTime.UtcNow)
 {
     this.joiner = joiner;
     this.window = window;
 }
Example #4
0
 /// <summary>
 /// Creates a deep-copy from existing offer and updates it's time stamp.
 /// </summary>
 /// <param name="offer"></param>
 /// <returns></returns>
 public static GameOffer FromOffer(GameOffer offer)
 {
     return(new GameOffer(offer.creator, offer.game_type, offer.match_to, offer.stake, offer.limit));
 }
Example #5
0
 public void Add(GameOffer offer)
 {
     this.offers.Add(offer);
 }
Example #6
0
 public void Add(GameOffer offer)
 {
     this.offers.Add(offer);
 }