Represents creatable and joinable game offers.
Beispiel #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;
 }
Beispiel #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);
 }
Beispiel #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;
 }
Beispiel #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));
 }
 public void Add(GameOffer offer)
 {
     this.offers.Add(offer);
 }
 public void Add(GameOffer offer)
 {
     this.offers.Add(offer);
 }