- Timestamp:
- May 25, 2013, 6:49:14 PM (12 years ago)
- Branches:
- master
- Children:
- b8cb03f
- Parents:
- e487381
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
client/Client/main.cpp
re487381 r7511a2b 453 453 case MSG_TYPE_PLAYER: // kind of hacky to put this here 454 454 { 455 cout << "Got MSG_TYPE_PLAYER message in S tart" << endl;455 cout << "Got MSG_TYPE_PLAYER message in STATE_START" << endl; 456 456 457 457 Player p("", ""); … … 467 467 case MSG_TYPE_OBJECT: 468 468 { 469 cout << "Received object message. Baller Biller!" << endl;469 cout << "Received OBJECT message in STATE_START." << endl; 470 470 471 471 WorldMap::Object o(0, WorldMap::OBJECT_NONE, 0, 0); 472 472 o.deserialize(msg.buffer); 473 cout << "object id: " << o.id << endl; 473 474 gameMap->updateObject(o.id, o.type, o.pos.x, o.pos.y); 474 475 … … 511 512 case MSG_TYPE_PLAYER: 512 513 { 513 cout << "Got MSG_TYPE_PLAYER message in Login" << endl;514 cout << "Got MSG_TYPE_PLAYER message in STATE_LOGIN" << endl; 514 515 515 516 Player p("", ""); … … 544 545 case MSG_TYPE_OBJECT: 545 546 { 546 cout << "Received object message . Baller Biller!" << endl;547 cout << "Received object message in STATE_LOGIN." << endl; 547 548 548 549 WorldMap::Object o(0, WorldMap::OBJECT_NONE, 0, 0); … … 554 555 case MSG_TYPE_REMOVE_OBJECT: 555 556 { 557 cout << "Received REMOVE_OBJECT message!" << endl; 558 556 559 int id; 557 560 memcpy(&id, msg.buffer, 4); 561 562 cout << "Removing object with id " << id << endl; 563 558 564 if (!gameMap->removeObject(id)) 559 565 cout << "Did not remove the object" << endl; 566 567 break; 560 568 } 561 569 default:
Note:
See TracChangeset
for help on using the changeset viewer.