Changeset 5299436 in network-game
- Timestamp:
- May 25, 2013, 10:50:26 PM (12 years ago)
- Branches:
- master
- Children:
- e330873
- Parents:
- 7553db9
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
common/Message.h
r7553db9 r5299436 10 10 #define MSG_TYPE_OBJECT 7 11 11 #define MSG_TYPE_REMOVE_OBJECT 8 12 #define MSG_TYPE_DROP_FLAG 9 12 #define MSG_TYPE_PICKUP_FLAG 9 13 #define MSG_TYPE_DROP_FLAG 10 13 14 14 15 typedef struct -
server/server.cpp
r7553db9 r5299436 515 515 break; 516 516 } 517 case MSG_TYPE_PICKUP_FLAG: 518 { 519 // may want to check the id matches the sender, just like for PLAYER_NOVE 520 cout << "PICKUP_FLAG" << endl; 521 522 int id; 523 524 memcpy(&id, clientMsg.buffer, 4); 525 cout << "id: " << id << endl; 526 527 break; 528 } 517 529 case MSG_TYPE_DROP_FLAG: 518 530 {
Note:
See TracChangeset
for help on using the changeset viewer.