Last change
on this file since edfd1d0 was edfd1d0, checked in by dportnoy <dmp1488@…>, 12 years ago |
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
|
-
Property mode
set to
100644
|
File size:
166 bytes
|
Line | |
---|
1 | #ifndef _COMMON_H
|
---|
2 | #define _COMMON_H
|
---|
3 |
|
---|
4 | #include <fcntl.h>
|
---|
5 | #include <assert.h>
|
---|
6 |
|
---|
7 | void set_nonblock(int sock);
|
---|
8 |
|
---|
9 | typedef struct
|
---|
10 | {
|
---|
11 | int x;
|
---|
12 | int y;
|
---|
13 | } PLAYER_POS;
|
---|
14 |
|
---|
15 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.