Module polimi.ingsw.am21.codex
Interface CornerContentVisitor
public interface CornerContentVisitor
-
Method Summary
Modifier and TypeMethodDescriptionvoid
visit
(ObjectType object, int diff) Updates the count of the given object in the object mapvoid
visit
(ResourceType resource, int diff) Updates the count of the given resource in the resource map
-
Method Details
-
visit
Updates the count of the given object in the object map- Parameters:
object
- The object whose count will be updateddiff
- The count difference that will be applied to the object map (usually either 1 or -1)
-
visit
Updates the count of the given resource in the resource map- Parameters:
resource
- The resource whose count will be updateddiff
- The count difference that will be applied to the resource map (usually either 1 or -1)
-