Commit bdbf1e96 authored by Allen B. Doelue's avatar Allen B. Doelue

-Changed array to pointer

-Changed rankSum and getAverage to floats (You might have to limit it to 2 or 3 decimal places)
parent ea5b5f7e
#ifndef LOBBY_H
#define LOBBY_H
#include <iostream>
#include "Player.h"
class Lobby
{
public:
Lobby();
Lobby(unsigned int cap);
float getAverage();
unsigned int getCapacity() { return capacity; }
unsigned int getSize() { return size; }
void addPlayer(Player p);
void display();
private:
unsigned int capacity;
unsigned int size;
float rankSum;
Player *players;
};
#endif //LOBBY_H
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment