Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

EnvConfig.cs 851B

123456789101112131415161718192021222324252627282930
  1. namespace uqac_ia_aspirobot.Environment
  2. {
  3. public class EnvConfig
  4. {
  5. public int Width { get; set; }
  6. public int Height { get; set; }
  7. public float ActionPropability { get; set; }
  8. public float AddJewelProbability { get; set; }
  9. public float RemoveJewelProbability { get; set; }
  10. public float AddDustProbability { get; set; }
  11. public int SleepTime { get; set; }
  12. public void CopyTo(EnvConfig other)
  13. {
  14. other.Width = Width;
  15. other.Height = Height;
  16. other.ActionPropability = ActionPropability;
  17. other.AddJewelProbability = AddJewelProbability;
  18. other.RemoveJewelProbability = RemoveJewelProbability;
  19. other.AddDustProbability = AddDustProbability;
  20. other.SleepTime = SleepTime;
  21. }
  22. }
  23. }