Skip to content

Update Client side data handling #45

@OliverBenz

Description

@OliverBenz

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions