@andreabiagini5/applicazioni-e-servizi-web-project - v1.1.3
    Preparing search index...
    interface MatchmakingQueue {
        get size(): number;
        add(candidate: MatchmakingCandidate): void;
        empty(): boolean;
        get(username: string): MatchmakingCandidate;
        has(username: string): boolean;
        remove(username: string): void;
    }

    Hierarchy

    Index

    Accessors

    Methods

    Accessors

    Methods

    • Check if a player is in the queue.

      Parameters

      • username: string

        The username of the player to check.

      Returns boolean

      • True if the player is in the queue, false otherwise.
    • Removes a candidate from the queue.

      Parameters

      • username: string

        The username of the player to remove.

      Returns void