Interface IEnvironment
-
- All Known Implementing Classes:
Environment
public interface IEnvironmentThe possible actions that can be performed in the environment.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleandropWasteInWastebin(Waste waste, Wastebin wastebin)Drop a piece of waste.VisiongetVision(Cleaner cleaner)Get the current vision.booleanpickUpWaste(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.
-
-