From cf95a00c3246b5a377d6f263738f031565da87ca Mon Sep 17 00:00:00 2001 From: Constantin Date: Sun, 5 May 2013 12:27:14 +0200 Subject: [PATCH 1/1] added simple score display at the end and on the terminal --- game.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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; } -- 2.30.2