SportsPlayer.h
Dosyayı İndir
#ifndef SPORTSPLAYER_H_INCLUDED
#define SPORTSPLAYER_H_INCLUDED
#include <string>
#include "SportsTeam.h"
using namespace std;
class SportsTeam;
class SportsPlayer{
public:
SportsPlayer()
: SportsPlayer(0,"Ads�z Oyuncu",0.0)
{
}
SportsPlayer(long playerId,string playerName,double averageScore)
:_playerId(playerId),_playerName(playerName),_averageScore(averageScore)
{
}
long getPlayerId() const {
return _playerId;
}
void setPlayerId(const long playerId){
_playerId=playerId;
}
string getPlayerName() const {
return _playerName;
}
void setPlayerName(const string playerName){
_playerName=playerName;
}
double getAverageScore() const {
return _averageScore;
}
void setAverageScore(const double averageScore){
_averageScore=averageScore;
}
SportsTeam &getTeam() {
return _team;
}
void setTeam(SportsTeam &team){
_team=team;
}
private:
long _playerId;
string _playerName;
double _averageScore;
SportsTeam _team;
};
#endif
Dosyayı İndir