Changeset b92e6a7 in network-game for common/Game.h
- Timestamp:
- Sep 26, 2013, 8:29:14 PM (12 years ago)
- Branches:
- master
- Children:
- f41a7f9
- Parents:
- 321fbbc
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
common/Game.h
r321fbbc rb92e6a7 15 15 16 16 #include "Player.h" 17 #include "WorldMap.h" 17 18 18 19 using namespace std; … … 20 21 class Game { 21 22 private: 22 int id;23 unsigned int id; 23 24 string name; 24 map<int, Player*> players; 25 map<unsigned int, Player*> players; 26 WorldMap* worldMap; 27 int blueScore; 28 int redScore; 25 29 26 30 public: … … 31 35 32 36 int getNumPlayers(); 37 map<unsigned int, Player*>& getPlayers(); 38 int getBlueScore(); 39 int getRedScore(); 40 WorldMap* getMap(); 33 41 34 void setId( int id);42 void setId(unsigned int id); 35 43 bool addPlayer(Player* p); 36 bool removePlayer(int id); 44 bool removePlayer(unsigned int id); 45 void setBlueScore(int score); 46 void setRedScore(int score); 37 47 }; 38 48
Note:
See TracChangeset
for help on using the changeset viewer.