Пример #1
0
 private void UpdateScoresAndRewards(Competitor winner, Competitor loser)
 {
     // real system uses rankings, history, bonus points, in-game actions 
     // seasonal promotions, marketing campaigns
     winner.Score = winner.Score.Add(new Score(200));
     loser.Score = loser.Score.Subtract(new Score(200));
 }
Пример #2
0
 public OnlineDeathmatch(Competitor player1, Competitor player2, Guid id)
 {
     this.player1 = player1;
     this.player2 = player2;
     this.Id = id;
 }
Пример #3
0
 public OnlineDeathmatch(Competitor player1, Competitor player2, Guid id)
 {
     this.player1 = player1;
     this.player2 = player2;
     this.Id      = id;
 }