Пример #1
0
 public int AvaliableOfType(Gem gem) => gems.Count(x => x == gem);
Пример #2
0
 public int TotalGemsOfType(Gem gem) => price.OfType(gem);
Пример #3
0
 private int Missing(Gem gem) => Math.Max(0, WouldSpend(gem) - player.TotalGems(gem));
Пример #4
0
 private int WouldSpend(Gem gem) => Math.Max(0, development.TotalGemsOfType(gem) - player.Bonus(gem));
Пример #5
0
 public int OfType(Gem gem) => gems.Count(x => x == gem);
Пример #6
0
 public SingularGemNames(Gem gem)
 {
     this.gem = gem;
 }
Пример #7
0
 public PluralGemNames(Gem gem)
 {
     this.gem = gem;
 }