source: network-game/server/player.h@ d2b411a

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

Added the player class, added a list of logged-in players, and changed the makefile to work properly, and made git ignore all build artifacts

  • Property mode set to 100644
File size: 280 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 {
10private:
11 sockaddr_in addr;
12
13public:
14 string name;
15
16 player(string name, sockaddr_in addr);
17 ~player();
18
19 bool operator == (const player &p);
20};
21
22#endif
Note: See TracBrowser for help on using the repository browser.