Changeset 1d96513 in network-game for common/Game.h


Ignore:
Timestamp:
Dec 22, 2013, 2:57:04 AM (11 years ago)
Author:
dportnoy <dmp1488@…>
Branches:
master
Children:
45734ff
Parents:
483a2cb
Message:

Game class includes projectile list

File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/Game.h

    r483a2cb r1d96513  
    1313#include "Player.h"
    1414#include "WorldMap.h"
     15#include "Projectile.h"
    1516
    1617using namespace std;
     
    2122   string name;
    2223   map<unsigned int, Player*> players;
     24   map<unsigned int, Projectile> projectiles;
    2325   WorldMap* worldMap;
    2426   int blueScore;
     
    3436   int getNumPlayers();
    3537   map<unsigned int, Player*>& getPlayers();
     38   map<unsigned int, Projectile>& getProjectiles();
    3639   int getBlueScore();
    3740   int getRedScore();
     
    3942
    4043   void setId(unsigned int id);
     44   void setBlueScore(int score);
     45   void setRedScore(int score);
     46
    4147   bool addPlayer(Player* p);
    4248   bool removePlayer(unsigned int id);
     
    4551   int processFlagPickupRequest(Player* p);
    4652
    47    void setBlueScore(int score);
    48    void setRedScore(int score);
     53   bool addProjectile(Projectile p);
     54   bool removeProjectile(unsigned int id);
    4955};
    5056
Note: See TracChangeset for help on using the changeset viewer.