Changeset 257de75 in network-game for client/Client
- Timestamp:
- Dec 25, 2013, 4:57:17 PM (11 years ago)
- Branches:
- master
- Children:
- 29fdf12
- Parents:
- df74597
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
client/Client/main.cpp
rdf74597 r257de75 599 599 } 600 600 }else if (wndCurrent == wndGameSummary) { 601 cout << "Drawing game summary" << endl;602 603 cout << "blue score from obj: " << gameSummary->getBlueScore() << endl;604 cout << "red score from obj: " << gameSummary->getRedScore() << endl;605 606 601 ostringstream ossBlueScore, ossRedScore; 607 608 cout << "Declared scores" << endl;609 602 610 603 ossBlueScore << "Blue Score: " << gameSummary->getBlueScore(); 611 604 ossRedScore << "Red Score: " << gameSummary->getRedScore(); 612 613 cout << "set scores" << endl;614 605 615 606 string strWinner; … … 622 613 strWinner = "winner set to wrong value"; 623 614 624 cout << "Calling the drawing routines" << endl;625 626 615 al_draw_text(font, al_map_rgb(0, 255, 0), 512, 40, ALLEGRO_ALIGN_CENTRE, gameSummary->getName().c_str()); 627 616 al_draw_text(font, al_map_rgb(0, 255, 0), 330, 80, ALLEGRO_ALIGN_LEFT, ossBlueScore.str().c_str()); 628 617 al_draw_text(font, al_map_rgb(0, 255, 0), 515, 80, ALLEGRO_ALIGN_LEFT, ossRedScore.str().c_str()); 629 618 al_draw_text(font, al_map_rgb(0, 255, 0), 512, 120, ALLEGRO_ALIGN_CENTRE, strWinner.c_str()); 630 631 cout << "Done drawing game summary" << endl;632 619 } 633 620
Note:
See TracChangeset
for help on using the changeset viewer.