source: network-game/common/GameSummary.cpp@ ea3a3a9

Last change on this file since ea3a3a9 was 635ad9b, checked in by dportnoy <dmp1488@…>, 11 years ago

Correction to GameSummary constructor

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