source: network-game/common/Common.h@ edfd1d0

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
RevLine 
[3b1efcc]1#ifndef _COMMON_H
2#define _COMMON_H
3
[edfd1d0]4#include <fcntl.h>
5#include <assert.h>
6
7void set_nonblock(int sock);
8
9typedef struct
[3b1efcc]10{
[edfd1d0]11 int x;
12 int y;
13} PLAYER_POS;
[3b1efcc]14
15#endif
Note: See TracBrowser for help on using the repository browser.