Last change
on this file since 4da5aa3 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 |
|
---|
7 | using namespace std;
|
---|
8 |
|
---|
9 | class player {
|
---|
10 | private:
|
---|
11 | sockaddr_in addr;
|
---|
12 |
|
---|
13 | public:
|
---|
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.