예제 #1
0
 public PlayarStatisistics(Guid id, PlayarName name)
 {
     Id = id;
     Name = name;
     Score = InitialScore;
     ScoreHistory = new LimitedQueue<Tuple<double, Activity>>(KeepLatestResults);
     Offensive = new GamePercentage();
     Defensive = new GamePercentage();
     Total = new GamePercentage();
     _winning = new Streak(5);
     _loosing = new Streak(5);
 }
 public void AddPlayar(Guid id, PlayarName name, DateTime timestamp)
 {
     _playerCache.Add(id, new PlayarStatisistics(id, name));
     AddActivity(new Activity(name + " was registered.", timestamp));
     _playerCount++;
 }
 public PlayarScore(Guid id, PlayarName playarName, double score)
 {
     Id = id;
     PlayarName = playarName;
     Score = score;
 }