Changeset b07eeac in network-game for common/Common.h


Ignore:
Timestamp:
May 25, 2013, 1:45:54 AM (12 years ago)
Author:
dportnoy <dmp1488@…>
Branches:
master
Children:
2df63d6
Parents:
b81cea1
Message:

Players pick up flags when they get close to the flag objects, not the structres. When a flag is picked up, a REMOVE_OBJECT message is sent

File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/Common.h

    rb81cea1 rb07eeac  
    1212#endif
    1313
    14 void set_nonblock(int sock);
    15 unsigned long long getCurrentMillis();
    16 
    17 typedef struct
    18 {
    19    int x;
    20    int y;
    21 } POSITION;
    22 
    2314typedef struct
    2415{
     
    2718} FLOAT_POSITION;
    2819
     20typedef 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
     34void set_nonblock(int sock);
     35unsigned long long getCurrentMillis();
     36float posDistance(FLOAT_POSITION pos1, FLOAT_POSITION pos2);
     37
    2938#endif
Note: See TracChangeset for help on using the changeset viewer.