forked from CoolestCatMona/Class-Project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
stadium.h
113 lines (80 loc) · 2.79 KB
/
stadium.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
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
#include <string>
#include <iostream>
#include <vector>
using namespace std;
#ifndef STADIUM_H_
#define STADIUM_H_
// Class - Stadium
typedef string Name;
class stadium
{
public:
// CONSTRUCTOR
stadium();
// CONSTRUCTOR
stadium(string inStadium, //IN - Stadium Name
string inLeague, //IN - League
string inTeam, //IN - Team Name
bool inSurface, //IN - Surface Type
int inDay,
int inMonth,
int inYear);
// METHOD - setStadium: sets the current stadium name
void setStadium(string inStadium);
// METHOD - getStadium: gets the current stadium name
Name getStadium() const;
// METHOD - setLeague: sets the current league
void setLeague(string inLeague);
// METHOD - getLeague: gets the current league
Name getLeague() const;
// METHOD - setTeam: Sets the current team name
void setTeam(string inTeam);
// METHOD - getTeam: gets the current team name
Name getTeam() const;
// METHOD - setSurface: sets the current stadium surface
//- True for Grass, False for Non Grass
void setSurface(bool inSurface);
// METHOD - getSurface: gets the current surface
bool getSurface() const;
// METHOD - setYear: Sets the year opened
void setYear(int inYear);
// METHOD - getYear: gets the year opened
int getYear() const;
// METHOD - setMonth: Sets the month opened
void setMonth(int inMonth);
// METHOD - getMonth: gets the month opened
int getMonth() const;
// METHOD - setDay: Sets the day opened
void setDay(int inDay);
// METHOD - getDay: gets the day opened
int getDay() const;
// METHOD - setCity: Sets the current city
void setCity(string inCity);
// METHOD - getCity: gets the current city
Name getCity() const;
// METHOD - setState: Sets the current tstate
void setState(string inState);
// METHOD - getState: gets the current state
Name getState() const;
// METHOD - setConnect: Sets the current connections of the stadium
void setConnect(string &inConnections);
// METHOD - getConnect: Gets the current connections of the stadium
vector<string> getConnect();
// METHOD - setConnect: Sets the current connection distances of the stadium
void setConnectD(string &inConnectionD);
// METHOD - getConnect: Gets the current connection distances of the stadium
vector<int> getConnectD();
private:
Name stadiumName; // Name of the Stadium
int year; // Year opened
int month; // Month opened
int day; // Day opened
string city; // City of Stadium
string state; // State of Stadium
vector<string> connections; // Vector of connections
vector<int> connectionD; // Vector of Distance of stadiums connected to this one
Name league; // League: National or American
Name teamName; // Name of team that plays there
bool surface; // True = Grass Surface; False = Non Grass Surface
}; // END OF CLASS - Stadium
#endif /* STADIUM_H_ */