Changeset edfd1d0 in network-game for common/Player.h


Ignore:
Timestamp:
Dec 25, 2012, 6:27:14 PM (12 years ago)
Author:
dportnoy <dmp1488@…>
Branches:
master
Children:
4c202e0
Parents:
baaf6c8
Message:

Moved the Player class to the common directory, added a position to Player, added a new message type for sending player info, and made the server broadcast player positions everytime it receives and replies to a message

File:
1 moved

Legend:

Unmodified
Added
Removed
  • common/Player.h

    rbaaf6c8 redfd1d0  
    44#include <netinet/in.h>
    55#include <string>
     6
     7#include "Common.h"
    68
    79using namespace std;
     
    1416
    1517   void setAddr(sockaddr_in addr);
     18   void clearSensitiveInfo();
    1619
    1720   string name;
    1821   string password;
    1922   sockaddr_in addr;
     23   PLAYER_POS pos;
    2024};
    2125
Note: See TracChangeset for help on using the changeset viewer.