source: network-game/server/Player.h@ cdb4bec

Last change on this file since cdb4bec was 41ad8ed, checked in by dportnoy <dmp1488@…>, 12 years ago

The server properly handles registration messages

  • Property mode set to 100644
File size: 351 bytes
RevLine 
[2488852]1#ifndef _PLAYER_H
2#define _PLAYER_H
3
4#include <netinet/in.h>
5#include <string>
6
7using namespace std;
8
[8e540f4]9class Player {
[2488852]10public:
[59061f6]11 Player(string name, string password);
12 Player(string name, sockaddr_in addr); // this will be deleted
[8e540f4]13 ~Player();
[2488852]14
[59061f6]15 void setAddr(sockaddr_in addr);
16
[8e540f4]17 string name;
[59061f6]18 string password;
[8e540f4]19 sockaddr_in addr;
[2488852]20};
21
22#endif
Note: See TracBrowser for help on using the repository browser.