Changeset 3b8adee in network-game for common/Player.h


Ignore:
Timestamp:
Dec 26, 2012, 3:10:05 PM (12 years ago)
Author:
dportnoy <dmp1488@…>
Branches:
master
Children:
60776f2
Parents:
4c202e0
Message:

Added serialize and deserialize methods to Player and modified the server to use the serialize method when broadcasting user data

File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/Player.h

    r4c202e0 r3b8adee  
    2323   ~Player();
    2424
     25   void serialize(char* buffer);
     26   void deserialize(char* buffer);
     27
    2528   void setAddr(sockaddr_in addr);
    26    void clearSensitiveInfo();
    2729
    2830   string name;
Note: See TracChangeset for help on using the changeset viewer.