Why go through LevelGrid to get to GridSystem?

Basically title, why don’t just go to GridSystem class to get width and height directly?

We are writing functions in LevelGrid to get from GridSystem and then pass it along to GridSystemVisual. I’m sure its more than a game of charades right?

1 Like

A simple logical explanation I found:

It might seem like a game of charades, but there could be reasons for this design. Separation of concerns and modularity are common reasons. By having LevelGrid handle the interaction with GridSystem, you ensure that each class has a specific responsibility, making the code more maintainable and easier to understand. It also allows for potential changes in the future without affecting other parts of the system.

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms