Changeset cf05729 in network-game for client/Client
- Timestamp:
- Jul 4, 2014, 10:41:28 PM (10 years ago)
- Branches:
- master
- Children:
- abc4d56
- Parents:
- cb5a021
- git-author:
- dportnoy <dmp1488@…> (07/04/14 22:40:57)
- git-committer:
- dportnoy <dmp1488@…> (07/04/14 22:41:28)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified client/Client/main.cpp ¶
rcb5a021 rcf05729 882 882 } 883 883 case STATE_GAME_LOBBY: 884 { 884 885 cout << "(STATE_GAME_LOBBY) "; 886 switch(msg.type) 887 { 888 case MSG_TYPE_START_GAME: 889 { 890 state = STATE_GAME; 891 wndCurrent = wndGame; 892 893 break; 894 } 895 default: 896 { 897 // keep these lines commented until until the correct messages are moved into the STATE_GAME_LOBBY section 898 //cout << "Received invalid message of type " << msg.type << endl; 899 900 //break; 901 } 902 } 903 } 885 904 case STATE_GAME: 886 905 { … … 1094 1113 break; 1095 1114 } 1096 case MSG_TYPE_START_GAME:1097 {1098 state = STATE_GAME;1099 wndCurrent = wndGame;1100 1101 break;1102 }1103 1115 default: 1104 1116 { … … 1405 1417 1406 1418 void startGame() { 1407 msgTo.type = MSG_TYPE_ LEAVE_GAME;1419 msgTo.type = MSG_TYPE_START_GAME; 1408 1420 1409 1421 msgProcessor.sendMessage(&msgTo, &server);
Note:
See TracChangeset
for help on using the changeset viewer.