-
Notifications
You must be signed in to change notification settings - Fork 0
/
takim.h
63 lines (56 loc) · 1.31 KB
/
takim.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#ifndef TAKIM_H
#define TAKIM_H
#include "string"
#include "vector"
#include "oyuncu.h"
using namespace std;
class Takim {
public:
Takim(string , string , string );
// SET FUNCS
void setName(string&);
void setAbbr(string&);
void setCoach(string&);
void setPlayers(vector<Oyuncu>&);
void setLeaguePoint(int&);
void setCountWin(int&);
void setCountLose(int&);
void setCountDraw(int&);
void setCountGoal(int&);
// GET FUNCS
string getName();
string getAbbr();
string getCoach();
int getPerformanceAvgTeam() const;
int getPerformanceAvgK() const;
int getPerformanceAvgD() const;
int getPerformanceAvgO() const;
int getPerformanceAvgF() const;
int getLeaguePoint() const;
int getCountWin() const;
int getCountLose() const;
int getCountDraw() const;
int getCountGoal() const;
vector<Oyuncu> getPlayers();
private:
// FUNCS
void calcAvgK();
void calcAvgD();
void calcAvgO();
void calcAvgF();
// PROPS
string name;
string abbr;
string coach;
int avgPerformanceK=0;
int avgPerformanceD=0;
int avgPerformanceO=0;
int avgPerformanceF=0;
int leaguePoint=0;
int countWin=0;
int countLose=0;
int countDraw=0;
int countGoal=0;
vector<Oyuncu> players;
};
#endif // TAKIM_H