Interface IEnvironment
-
- All Known Implementing Classes:
Environment
public interface IEnvironment
The possible actions that can be performed in the environment.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
dropWasteInWastebin(Waste waste, Wastebin wastebin)
Drop a piece of waste.Vision
getVision(Cleaner cleaner)
Get the current vision.boolean
pickUpWaste(Waste waste)
Try to pick up some piece of waste.
-
-
-
Method Detail
-
getVision
Vision getVision(Cleaner cleaner)
Get the current vision.- Parameters:
cleaner
- The cleaner.- Returns:
- The current vision.
-
pickUpWaste
boolean pickUpWaste(Waste waste)
Try to pick up some piece of waste.- Parameters:
waste
- The waste.- Returns:
- True if the waste could be picked up.
-
-