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 grouplfg 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 lookingforgroup 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: A C header file lfgqueueh declaring the LFGQueue class. A C header file playerh declaring the Player class. A C header file playercpp implementing the Player class. A C source file maincpp 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 in the array.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
