Changeset b07eeac in network-game for common/Common.h
- Timestamp:
- May 25, 2013, 1:45:54 AM (12 years ago)
- Branches:
- master
- Children:
- 2df63d6
- Parents:
- b81cea1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
common/Common.h
rb81cea1 rb07eeac 12 12 #endif 13 13 14 void set_nonblock(int sock);15 unsigned long long getCurrentMillis();16 17 typedef struct18 {19 int x;20 int y;21 } POSITION;22 23 14 typedef struct 24 15 { … … 27 18 } FLOAT_POSITION; 28 19 20 typedef struct 21 { 22 int x; 23 int y; 24 //FLOAT_POSITION toFloat(); 25 FLOAT_POSITION toFloat() { 26 FLOAT_POSITION floatPosition; 27 floatPosition.x = x; 28 floatPosition.y = y; 29 30 return floatPosition; 31 } 32 } POSITION; 33 34 void set_nonblock(int sock); 35 unsigned long long getCurrentMillis(); 36 float posDistance(FLOAT_POSITION pos1, FLOAT_POSITION pos2); 37 29 38 #endif
Note:
See TracChangeset
for help on using the changeset viewer.