Changeset e6c26b8 in network-game for common/Player.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/Player.h

    r373089e re6c26b8  
    55#include <map>
    66
    7 #include "Common.h"
     7#include "Compiler.h"
    88
    9 #if defined LINUX
     9#if defined WINDOWS
     10   #include <winsock2.h>
     11#elif defined LINUX
    1012   #include <netinet/in.h>
    1113#endif
     
    4648   void deserialize(char* buffer);
    4749
    48    bool updateTarget(map<unsigned int, Player>& mapPlayers);
     50   bool updateTarget(map<unsigned int, Player*>& mapPlayers);
    4951   bool move(WorldMap *map);
    5052
Note: See TracChangeset for help on using the changeset viewer.