Beispiel #1
0
 public Task <Player> CreateRandomPlayer()
 {
     return(Task.FromResult(new Player()
     {
         CharacterBeingPlayed = new Toon()
         {
             CharacterLevel = _randomNumberGenerator.GenerateRandomInteger(1, 10),
             Health = new Health(_randomNumberGenerator.GenerateRandomInteger(75, 100)),
             PrimaryResource = new Resource(_randomNumberGenerator.GenerateRandomInteger(100, 150))
         },
         PlayerSkillLevel = _randomNumberGenerator.GenerateRandomDouble(0, 10)
     }));;
 }