-
Notifications
You must be signed in to change notification settings - Fork 0
/
PlayerInfo.cpp
93 lines (77 loc) · 1.34 KB
/
PlayerInfo.cpp
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
#include "stdafx.h"
#include <iostream>
#include <string>
#include "PlayerInfo.h"
using namespace std;
PlayerInfo::PlayerInfo(){
Name = "";
Salary = 0;
matchUP = "";
AveragePts = 0;
Pos = "";
Trigger ="";
team1 = "";
team2 = "";
prevGameData = "";
atBats = 0;
}
void PlayerInfo::setName(string pName){
Name = pName;
}
string PlayerInfo::getName(){
return Name;
}
void PlayerInfo::setSalary(int sal){
Salary = sal;
}
int PlayerInfo::getSalary(){
return Salary;
}
void PlayerInfo::setPos(string pPos){
Pos = pPos;
}
string PlayerInfo::getPos(){
return Pos;
}
void PlayerInfo::setMatchUP(string match){
matchUP = match;
}
string PlayerInfo::getMatchUP(){
return matchUP;
}
void PlayerInfo::setAVGPTS(float avg){
AveragePts = avg;
}
float PlayerInfo::getAVGPTS(){
return AveragePts;
}
void PlayerInfo::setTeam1(string teamOne){
team1 = teamOne;
}
void PlayerInfo::setTeam2(string teamTwo){
team2 = teamTwo;
}
string PlayerInfo::getTeam1(){
return team1;
}
string PlayerInfo::getTeam2(){
return team2;
}
void PlayerInfo::setprevGameData(string s){
prevGameData = s;
}
string PlayerInfo::getprevGameData(){
return prevGameData;
}
string PlayerInfo::getBvPinfo(){
return BvPinfo;
}
void PlayerInfo::setBvPinfo(string x){
BvPinfo = x;
}
void PlayerInfo::setAtBats(int x){
atBats = x;
}
int PlayerInfo::getAtBats(){
return atBats;
}