Skip to content

Investigate: Architecture upgraade #53

@OliverBenz

Description

@OliverBenz

GameSession = Data (Position) + GameHandler
GameHandler = variant <LocalGame, LanGame, FreePlay, etc.>

GameHandler(Position& pos); // constructor

The GameWidget has a Position& to get data and a GameHandler& to update data.
The GameHandler updates Position and emits signals.

Investigate also: Emit signals in Position or in GameHandler? It's logic so it should be in GameHandler but its data update so should be in data? Every data update requires signalling so keeping those together makes sense.

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