Changeset cf05729 in network-game for client/Client


Ignore:
Timestamp:
Jul 4, 2014, 10:41:28 PM (10 years ago)
Author:
dportnoy <dmp1488@…>
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)
Message:

Client processes START_GAME response

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified client/Client/main.cpp

    rcb5a021 rcf05729  
    882882      }
    883883      case STATE_GAME_LOBBY:
     884      {
    884885         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      }
    885904      case STATE_GAME:
    886905      {
     
    10941113               break;
    10951114            }
    1096             case MSG_TYPE_START_GAME:
    1097             {
    1098                state = STATE_GAME;
    1099                wndCurrent = wndGame;
    1100 
    1101                break;
    1102             }
    11031115            default:
    11041116            {
     
    14051417
    14061418void startGame() {
    1407    msgTo.type = MSG_TYPE_LEAVE_GAME;
     1419   msgTo.type = MSG_TYPE_START_GAME;
    14081420
    14091421   msgProcessor.sendMessage(&msgTo, &server);
Note: See TracChangeset for help on using the changeset viewer.