Changeset 45734ff in network-game for common/Game.h
- Timestamp:
- Dec 22, 2013, 10:14:43 PM (11 years ago)
- Branches:
- master
- Children:
- 58ca135
- Parents:
- 1d96513
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
common/Game.h
r1d96513 r45734ff 26 26 int blueScore; 27 27 int redScore; 28 unsigned int unusedProjectileId; 28 29 29 30 public: … … 35 36 string getName(); 36 37 int getNumPlayers(); 37 map<unsigned int, Player*>& getPlayers();38 map<unsigned int, Projectile>& getProjectiles();39 38 int getBlueScore(); 40 39 int getRedScore(); … … 45 44 void setRedScore(int score); 46 45 46 map<unsigned int, Player*>& getPlayers(); 47 47 bool addPlayer(Player* p); 48 48 bool removePlayer(unsigned int id); 49 50 map<unsigned int, Projectile>& getProjectiles(); 51 bool addProjectile(Projectile p); 52 bool removeProjectile(unsigned int id); 53 49 54 bool startPlayerMovement(unsigned int id, int x, int y); 50 55 bool processPlayerMovement(Player* p, FLOAT_POSITION oldPos); 51 56 int processFlagPickupRequest(Player* p); 52 57 53 bool addProjectile(Projectilep);54 bool removeProjectile(unsigned int id);58 void assignProjectileId(Projectile* p); 59 void updateUnusedProjectileId(); 55 60 }; 56 61
Note:
See TracChangeset
for help on using the changeset viewer.