generated from OliverBenz/TemplateCpp
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Position class is the representation of the game state.
The SessionManager receives signals from the server and updates the position
The Position class is pure data layer.
The UI elements have a const& to Position.
Position only has public getters. setters are private with SessionManager as friend.
Structure:
SessionManager updates Position
Position emits signals to listeners
Listeners query position for new data.
Then, remove the data getters from SessionManager. UI elements get directly from position class.
Metadata
Metadata
Assignees
Labels
No labels