Skip to content

Pass player references around by Player object as much as possible #2

@albertyw

Description

@albertyw

Many functions that operate on a player entity instead receive bags of primitives (e.g. addPlayerWithTeam(socket, username, roomID, teamNumber)) or use a different entity that has a 1:1 relationship with a player (e.g. removePlayer(socket)). It would simplify a lot of things to consistently pass around Player objects instead of operating on different variables relating to Players.

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