-
Notifications
You must be signed in to change notification settings - Fork 0
/
Competition.h
37 lines (26 loc) · 922 Bytes
/
Competition.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef COMPETITION_H_INCLUDED
#define COMPETITION_H_INCLUDED
#include <string>
#include <iostream>
#include "Player.h"
#include "Team.h"
#include "ImmunityAward.h"
using namespace std;
class Competition{
protected:
int id;
string name;
string winner;
public:
Competition(){id = 0; name = "";}
Competition(int i, string n){id = i; name = n;}
~Competition(){cout << "Competition with id " << id << " and name " << name << " is destroyed." << endl;}
void setName(string s){name = s;}
void setId(int id){this->id = id;}
void setWinner(string w){winner = w;}
int getId(){return id;}
string getName(){return name;}
string getWinner(){return winner;}
void status(){cout << "Competition Id: " << id << endl; cout << "Competition Name: " << name << endl; cout << "Winner: " << winner << endl;}
};
#endif // COMPETITION_H_INCLUDED