InsertUserName
Member
- Joined
- Apr 19, 2020
- Messages
- 7
- Programming Experience
- 1-3
Hello, everyone. I’m having a hard time understanding the proper structure of the project, who’s responsible for what.
Can you help me with a specific example?
We have a class of "CoinSystem" for example, this class for create coins on a level. What class should be responsible for counting collected coins and displaying them on a screen? Same class "CoinSystem" ? Or must be a separate class of "LevelStatistic". According to SOLID principles, a class should have one responsibility and one reason to change, "CoinSystem" already has it.
At the end of the level, i have to calculate the amount of coins and the time spent.
And maybe you have an example of a project in GIT where i can look at architecture, structure and interaction.
Can you help me with a specific example?
We have a class of "CoinSystem" for example, this class for create coins on a level. What class should be responsible for counting collected coins and displaying them on a screen? Same class "CoinSystem" ? Or must be a separate class of "LevelStatistic". According to SOLID principles, a class should have one responsibility and one reason to change, "CoinSystem" already has it.
At the end of the level, i have to calculate the amount of coins and the time spent.
And maybe you have an example of a project in GIT where i can look at architecture, structure and interaction.