Interface Pickable
public interface Pickable
Defines the methods that any pickable item must have.
-
Method Summary
-
Method Details
-
isPicked
boolean isPicked()Method that allows us to know if the item has been picked or not.- Returns:
true
if the item has been picked. Otherwise,false
.
-
setPicked
void setPicked(boolean picked) Sets the item as picked/unpicked.- Parameters:
picked
- State:true
if the item was picked. Otherwise,false
.
-