From: Constantin Date: Sun, 5 May 2013 10:27:14 +0000 (+0200) Subject: added simple score display at the end and on the terminal X-Git-Url: https://git.ralfj.de/multypo.git/commitdiff_plain/cf95a00c3246b5a377d6f263738f031565da87ca added simple score display at the end and on the terminal --- diff --git a/game.cpp b/game.cpp index 6611999..6e4b6f0 100644 --- a/game.cpp +++ b/game.cpp @@ -12,6 +12,7 @@ #include #include #include +#include class Renderable { public: @@ -351,7 +352,15 @@ int main (int argc, char** argv) { } } - //sleep(10); + for (size_t i=0; igetName() << " has " << players[i]->getScore() << " points." << std::endl; + std::cout << msg.str(); + playerTextFields[i].text = msg.str(); + } + render(dpy, w, gc, blackColor, toRender); + + sleep(5); return 0; }