Question: In many multiplayer online games, there s a looking for group ( lfg ) feature for being automatically matched with other players. Such a feature

In many multiplayer online games, theres a looking for group(lfg) feature for being automatically matched with other players. Such a feature behaves like a queue: players join the queue to become part of a group. The players who join the queue first are the first to be grouped. Once their group is complete, they can be removed in groups. Here youll implement a looking-for-group queue for a game where players can be one of three roles (Defender, Hunter, and Bard) and each group consists of one Defender, one Hunter, and one Bard.
The following files have been given to you: 1. A C++ header file (lfgqueue.h) declaring the LFGQueue class. 2. A C++ header file (player.h) declaring the Player class. 3. A C++ header file (player.cpp) implementing the Player class. 4. A C++ source file (main.cpp) containing a main() function with tests.
Create new C++ source file named lfgqueue.cpp that implements the classes declared in lfgqueue.h so that lfgqueue.cpp and the provided files compile into a program that runs with no failed tests. The BACK of the queue MUST be at index 0 in the array.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!