Changeset b35b2b2 in network-game for common/MessageContainer.cpp
- Timestamp:
- Jul 29, 2013, 10:32:59 PM (11 years ago)
- Branches:
- master
- Children:
- d05086b
- Parents:
- 297682c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
common/MessageContainer.cpp
r297682c rb35b2b2 48 48 this->timeAcked = time; 49 49 } 50 51 /* 52 string getMsgTypeString(int msgType) { 53 switch(msgType) { 54 case MSG_TYPE_ACK: return "MSG_TYPE_ACK"; 55 case MSG_TYPE_REGISTER: return "MSG_TYPE_REGISTER"; 56 case MSG_TYPE_LOGIN: return "MSG_TYPE_LOGIN"; 57 case MSG_TYPE_LOGOUT: return "MSG_TYPE_LOGOUT"; 58 case MSG_TYPE_CHAT: return "MSG_TYPE_CHAT"; 59 case MSG_TYPE_PLAYER: return "MSG_TYPE_PLAYER"; 60 case MSG_TYPE_PLAYER_MOVE: return "MSG_TYPE_PLAYER_MOVE"; 61 case MSG_TYPE_OBJECT: return "MSG_TYPE_OBJECT"; 62 case MSG_TYPE_REMOVE_OBJECT: return "MSG_TYPE_REMOVE_OBJECT"; 63 case MSG_TYPE_PICKUP_FLAG: return "MSG_TYPE_PICKUP_FLAG"; 64 caseMSG_TYPE_DROP_FLAG: return "MSG_TYPE_DROP_FLAG"; 65 case MSG_TYPE_SCORE: return "MSG_TYPE_SCORE"; 66 case MSG_TYPE_START_ATTACK: return "MSG_TYPE_START_ATACK"; 67 case MSG_TYPE_ATTACK: return "MSG_TYPE_ATTACK"; 68 case MSG_TYPE_PROJECTILE: return "MSG_TYPE_PROJECTILE"; 69 case MSG_TYPE_REMOVE_PROJECTILE: return "MSG_TYPE_REMOVE_PROJECTILE"; 70 default: return "Unknown"; 71 } 72 } 73 */
Note:
See TracChangeset
for help on using the changeset viewer.