source: network-game/server/Player.h@ 87b3ee2

Last change on this file since 87b3ee2 was 59061f6, checked in by dportnoy <dmp1488@…>, 12 years ago

Added new data access methods to save and retrieve player data

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