You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

EnvRoom.cs 619B

123456789101112131415161718192021222324252627282930313233
  1. using uqac_ia_aspirobot.Interfaces;
  2. namespace uqac_ia_aspirobot.Environment
  3. {
  4. public class EnvRoom : IRoom
  5. {
  6. public int X { get; set; }
  7. public int Y { get; set; }
  8. public RoomState State { get; protected set; }
  9. public void AddDust()
  10. {
  11. State |= RoomState.Dust;
  12. }
  13. public void RemoveDust()
  14. {
  15. State &= ~RoomState.Dust;
  16. }
  17. public void AddJewel()
  18. {
  19. State |= RoomState.Jewel;
  20. }
  21. public void RemoveJewel()
  22. {
  23. State &= ~RoomState.Jewel;
  24. }
  25. }
  26. }