- Timestamp:
- Jul 22, 2013, 11:52:39 PM (11 years ago)
- Branches:
- master
- Children:
- dee75cc
- Parents:
- 365e156
- Location:
- common
- Files:
-
- 2 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
common/MessageProcessor.h
r365e156 r49da01a 15 15 #endif 16 16 17 /* 18 #define MSG_TYPE_REGISTER 119 #define MSG_TYPE_LOGIN 220 #define MSG_TYPE_LOGOUT 321 #define MSG_TYPE_CHAT 422 #define MSG_TYPE_PLAYER 5// server sends this to update player positions23 #define MSG_TYPE_PLAYER_MOVE 6// client sends this when a player wants to move24 #define MSG_TYPE_OBJECT 725 #define MSG_TYPE_REMOVE_OBJECT 826 #define MSG_TYPE_PICKUP_FLAG 927 #define MSG_TYPE_DROP_FLAG 1 028 #define MSG_TYPE_SCORE 1 129 #define MSG_TYPE_START_ATTACK 1 230 #define MSG_TYPE_ATTACK 1 331 #define MSG_TYPE_PROJECTILE 1 432 #define MSG_TYPE_REMOVE_PROJECTILE 1 517 #define MSG_TYPE_ACK 1 18 #define MSG_TYPE_REGISTER 2 19 #define MSG_TYPE_LOGIN 3 20 #define MSG_TYPE_LOGOUT 4 21 #define MSG_TYPE_CHAT 5 22 #define MSG_TYPE_PLAYER 6 // server sends this to update player positions 23 #define MSG_TYPE_PLAYER_MOVE 7 // client sends this when a player wants to move 24 #define MSG_TYPE_OBJECT 8 25 #define MSG_TYPE_REMOVE_OBJECT 9 26 #define MSG_TYPE_PICKUP_FLAG 10 27 #define MSG_TYPE_DROP_FLAG 11 28 #define MSG_TYPE_SCORE 12 29 #define MSG_TYPE_START_ATTACK 13 30 #define MSG_TYPE_ATTACK 14 31 #define MSG_TYPE_PROJECTILE 15 32 #define MSG_TYPE_REMOVE_PROJECTILE 16 33 33 34 34 typedef struct 35 35 { 36 short type; 36 unsigned int id; 37 unsigned short type; 37 38 char buffer[256]; 38 39 } NETWORK_MSG; 39 */40 40 41 41 using namespace std;
Note:
See TracChangeset
for help on using the changeset viewer.