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

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

Added a method for measuring milliseconds and implemented smooth player movement

  • Property mode set to 100644
File size: 389 bytes
Line 
1#ifndef _COMMON_H
2#define _COMMON_H
3
4#include "Compiler.h"
5
6#if defined WINDOWS
7 #include <winsock2.h>
8 #include <WS2tcpip.h>
9#elif defined LINUX
10 #include <fcntl.h>
11 #include <assert.h>
12#endif
13
14void set_nonblock(int sock);
15unsigned long long getCurrentMillis();
16
17typedef struct
18{
19 int x;
20 int y;
21} POSITION;
22
23typedef struct
24{
25 float x;
26 float y;
27} FLOAT_POSITION;
28
29#endif
Note: See TracBrowser for help on using the repository browser.