Rev | Line | |
---|
[c9f6a1c] | 1 | #include "GameSummary.h"
|
---|
| 2 |
|
---|
| 3 | #include "Common.h"
|
---|
| 4 |
|
---|
| 5 | using namespace std;
|
---|
| 6 |
|
---|
| 7 | GameSummary::GameSummary() {
|
---|
| 8 | this->gameName = "";
|
---|
| 9 | this->winner = 0;
|
---|
| 10 | this->blueScore = 0;
|
---|
| 11 | this->redScore = 0;
|
---|
| 12 | }
|
---|
| 13 |
|
---|
| 14 | GameSummary::GameSummary(string name, unsigned int winner, unsigned int blueScore, unsigned int redScore) {
|
---|
| 15 | this->gameName = name;
|
---|
| 16 | this->blueScore = winner;
|
---|
| 17 | this->blueScore = blueScore;
|
---|
| 18 | this->redScore = redScore;
|
---|
| 19 | }
|
---|
| 20 |
|
---|
| 21 | GameSummary::~GameSummary() {
|
---|
| 22 | }
|
---|
| 23 |
|
---|
| 24 | string GameSummary::getName() {
|
---|
| 25 | return this->gameName;
|
---|
| 26 | }
|
---|
| 27 |
|
---|
| 28 | unsigned int GameSummary::getWinner() {
|
---|
| 29 | return this->winner;
|
---|
| 30 | }
|
---|
| 31 |
|
---|
| 32 | unsigned int GameSummary::getBlueScore() {
|
---|
| 33 | return this->blueScore;
|
---|
| 34 | }
|
---|
| 35 |
|
---|
| 36 | unsigned int GameSummary::getRedScore() {
|
---|
| 37 | return this->redScore;
|
---|
| 38 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.