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

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

Correction to GameSummary constructor

  • Property mode set to 100644
File size: 722 bytes
RevLine 
[c9f6a1c]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;
[635ad9b]16 this->winner = winner;
[c9f6a1c]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.