Changeset e6c26b8 in network-game for common/Projectile.h


Ignore:
Timestamp:
Oct 1, 2013, 8:08:24 PM (11 years ago)
Author:
Dmitry Portnoy <dportnoy@…>
Branches:
master
Children:
95ffe57
Parents:
373089e
Message:

The client dynamically allocates memory for players and passes around a map with player pointers and some includes are now in individual files instead of in Common.h

File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/Projectile.h

    r373089e re6c26b8  
    2626
    2727   // returns true if it reached the target and should be deleted
    28    bool move(map<unsigned int, Player>& mapPlayers);
     28   bool move(map<unsigned int, Player*>& mapPlayers);
     29
     30   /*
     31    * target should become a Player*. When this object gets serialized, the player's id should be sent.
     32    * Deserialization in this case might be tricky since it will require a playerMap to turn the id into a Plauyer*
     33    */
    2934
    3035   int id;
Note: See TracChangeset for help on using the changeset viewer.