Last change
on this file since 3476207 was 8554263, checked in by dportnoy <dmp1488@…>, 11 years ago |
Restructuring and code cleanup
|
-
Property mode
set to
100644
|
File size:
520 bytes
|
Line | |
---|
1 | #ifndef _COMMON_H
|
---|
2 | #define _COMMON_H
|
---|
3 |
|
---|
4 | #include <string>
|
---|
5 |
|
---|
6 | using namespace std;
|
---|
7 |
|
---|
8 | struct FLOAT_POSITION;
|
---|
9 |
|
---|
10 | struct POSITION {
|
---|
11 | int x;
|
---|
12 | int y;
|
---|
13 | FLOAT_POSITION toFloat();
|
---|
14 | };
|
---|
15 |
|
---|
16 | struct FLOAT_POSITION {
|
---|
17 | float x;
|
---|
18 | float y;
|
---|
19 | POSITION toInt();
|
---|
20 | };
|
---|
21 |
|
---|
22 | void error(const char *msg);
|
---|
23 | void set_nonblock(int sock);
|
---|
24 | unsigned long long getCurrentMillis();
|
---|
25 | string getCurrentDateTimeString();
|
---|
26 |
|
---|
27 | POSITION screenToMap(POSITION pos);
|
---|
28 | POSITION mapToScreen(POSITION pos);
|
---|
29 | float posDistance(FLOAT_POSITION pos1, FLOAT_POSITION pos2);
|
---|
30 |
|
---|
31 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.