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

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

New GameSummary class for storing game results

  • Property mode set to 100644
File size: 725 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->blueScore = 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.