Changeset 01d0d00 in network-game for common/Player.h


Ignore:
Timestamp:
Dec 27, 2012, 7:04:49 PM (12 years ago)
Author:
dportnoy <dmp1488@…>
Branches:
master
Children:
0333211, 3a79253
Parents:
5066e27
Message:

The server now uses a map to store players with player ids as keys

File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/Player.h

    r5066e27 r01d0d00  
    1919class Player {
    2020public:
     21   Player();
     22   Player(const Player& p);
    2123   Player(string name, string password);
    2224   Player(string name, sockaddr_in addr); // this will be deleted
     25
    2326   ~Player();
    2427
     
    2629   void deserialize(char* buffer);
    2730
     31   void setId(int id);
    2832   void setAddr(sockaddr_in addr);
    2933
     34   int id;
    3035   string name;
    3136   string password;
Note: See TracChangeset for help on using the changeset viewer.