Changes in / [67d032c:60940f8] in network-game


Ignore:
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • client/Client/main.cpp

    r67d032c r60940f8  
    165165
    166166   WorldMap* gameMap = WorldMap::loadMapFromFile("../../data/map.txt");
     167   //delete gameMap;
     168   //gameMap = WorldMap::createDefaultMap();
    167169
    168170   wndLogin = new Window(0, 0, SCREEN_W, SCREEN_H);
     
    243245   {
    244246      ALLEGRO_EVENT ev;
    245      
    246247      al_wait_for_event(event_queue, &ev);
    247248
     
    336337
    337338      if (receiveMessage(&msgFrom, sock, &from) >= 0)
     339      {
    338340         processMessage(msgFrom, state, chatConsole, mapPlayers, curPlayerId);
     341         cout << "state: " << state << endl;
     342      }
    339343 
    340344      if (redraw && al_is_event_queue_empty(event_queue))
     
    449453{
    450454   string response = string(msg.buffer);
     455
     456   cout << "Got message: " << msg.type << endl;
    451457
    452458   switch(state)
     
    525531               mapPlayers[p.id] = p;
    526532
     533               cout << "p.id: " << p.id << endl;
     534
    527535               break;
    528536            }
  • common/Player.cpp

    r67d032c r60940f8  
    7171   memcpy(&this->target.y, buffer+16, 4);
    7272   this->name.assign(buffer+20);
     73
     74   cout << "id: " << this->id << endl;
     75   cout << "pos x: " << this->pos.x << endl;
     76   cout << "pos y: " << this->pos.y << endl;
     77   cout << "target x: " << this->target.x << endl;
     78   cout << "target y: " << this->target.y << endl;
     79   cout << "name: " << this->name << endl;
    7380}
    7481
Note: See TracChangeset for help on using the changeset viewer.