Changeset 67d032c in network-game
- Timestamp:
- Feb 24, 2013, 5:57:21 PM (12 years ago)
- Branches:
- master
- Children:
- 054b50b
- Parents:
- 60940f8 (diff), 3d81c0d (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
client/Client/main.cpp
r60940f8 r67d032c 165 165 166 166 WorldMap* gameMap = WorldMap::loadMapFromFile("../../data/map.txt"); 167 //delete gameMap;168 //gameMap = WorldMap::createDefaultMap();169 167 170 168 wndLogin = new Window(0, 0, SCREEN_W, SCREEN_H); … … 245 243 { 246 244 ALLEGRO_EVENT ev; 245 247 246 al_wait_for_event(event_queue, &ev); 248 247 … … 337 336 338 337 if (receiveMessage(&msgFrom, sock, &from) >= 0) 339 {340 338 processMessage(msgFrom, state, chatConsole, mapPlayers, curPlayerId); 341 cout << "state: " << state << endl;342 }343 339 344 340 if (redraw && al_is_event_queue_empty(event_queue)) … … 453 449 { 454 450 string response = string(msg.buffer); 455 456 cout << "Got message: " << msg.type << endl;457 451 458 452 switch(state) … … 531 525 mapPlayers[p.id] = p; 532 526 533 cout << "p.id: " << p.id << endl;534 535 527 break; 536 528 } -
common/Player.cpp
r60940f8 r67d032c 71 71 memcpy(&this->target.y, buffer+16, 4); 72 72 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;80 73 } 81 74
Note:
See TracChangeset
for help on using the changeset viewer.