-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtim.h
51 lines (33 loc) · 745 Bytes
/
tim.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
#ifndef TIMH
#define TIMH
#include <string>
#include "igrac.h"
#include <iostream>
class FullTeam { //radi
public:
void printMsg() {
std::cout << "tim je pun\n";
}
};
class Tim {
public:
//konstruktori
Tim();
Tim(std::string name, int maxNumber); //radi
Tim(Tim& toCopy);
//metode
virtual void addPlayer(Igrac* newPlayer, int position); //radi
virtual int numOfPlayers(); //radi
virtual double teamValue(); //radi
//operatori
Igrac* operator[](int position); //radi
bool operator==(Tim& second); //radi
friend std::ostream& operator<<(std::ostream& it, Tim& team); //radi
//destruktori
~Tim(); //radi
protected:
std::string teamName;
int maxPlayers, currPlayers;
Igrac** players;
};
#endif