Changeset 06fc7f7 in network-game for common/MessageContainer.cpp
- Timestamp:
- Jan 22, 2014, 3:36:37 AM (11 years ago)
- Branches:
- master
- Children:
- e70b66b
- Parents:
- 0678d60
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
common/MessageContainer.cpp
r0678d60 r06fc7f7 43 43 } 44 44 45 45 46 void MessageContainer::setTimeAcked(unsigned long long time) { 46 47 this->timeAcked = time; 47 48 } 48 49 49 /* 50 string getMsgTypeString(int msgType) { 50 string MessageContainer::getMsgTypeString(int msgType) { 51 51 switch(msgType) { 52 52 case MSG_TYPE_ACK: return "MSG_TYPE_ACK"; … … 60 60 case MSG_TYPE_REMOVE_OBJECT: return "MSG_TYPE_REMOVE_OBJECT"; 61 61 case MSG_TYPE_PICKUP_FLAG: return "MSG_TYPE_PICKUP_FLAG"; 62 case MSG_TYPE_DROP_FLAG: return "MSG_TYPE_DROP_FLAG";62 case MSG_TYPE_DROP_FLAG: return "MSG_TYPE_DROP_FLAG"; 63 63 case MSG_TYPE_SCORE: return "MSG_TYPE_SCORE"; 64 case MSG_TYPE_START_ATTACK: return "MSG_TYPE_START_ATACK";65 64 case MSG_TYPE_ATTACK: return "MSG_TYPE_ATTACK"; 66 65 case MSG_TYPE_PROJECTILE: return "MSG_TYPE_PROJECTILE"; 67 66 case MSG_TYPE_REMOVE_PROJECTILE: return "MSG_TYPE_REMOVE_PROJECTILE"; 67 case MSG_TYPE_CREATE_GAME: return "MSG_TYPE_CREATE_GAME"; 68 case MSG_TYPE_JOIN_GAME: return "MSG_TYPE_JOIN_GAME"; 69 case MSG_TYPE_LEAVE_GAME: return "MSG_TYPE_LEAVE_GAME"; 70 case MSG_TYPE_GAME_INFO: return "MSG_TYPE_GAME_INFO"; 71 case MSG_TYPE_JOIN_GAME_SUCCESS: return "MSG_TYPE_JOIN_GAME_SUCCESS"; 72 case MSG_TYPE_JOIN_GAME_FAILURE: return "MSG_TYPE_JOIN_GAME_FAILURE"; 73 case MSG_TYPE_JOIN_GAME_ACK: return "MSG_TYPE_JOIN_GAME_ACK"; 74 case MSG_TYPE_PLAYER_JOIN_GAME: return "MSG_TYPE_PLAYER_JOIN_GAME"; 75 case MSG_TYPE_FINISH_GAME: return "MSG_TYPE_FINISH_GAME"; 68 76 default: return "Unknown"; 69 77 } 70 78 } 71 */
Note:
See TracChangeset
for help on using the changeset viewer.