diff --git a/rogueviz/gobot.cpp b/rogueviz/gobot.cpp index 718bcfbf..06da5232 100644 --- a/rogueviz/gobot.cpp +++ b/rogueviz/gobot.cpp @@ -196,6 +196,82 @@ void clean_old_shots() { bool menubased; +bool full_scores = true; + +struct score { + array owned_by, stones; + }; + +score get_score() { + score sc; + for(int i=0; i<4; i++) + sc.owned_by[i] = sc.stones[i] = 0; + + for(int i=0; i 0) { + shiftmatrix V = shiftless(atscreenpos(rad, rad, rad)); + queuepolyat(V, cgi.shHugeDisk, player_colors[0], PPR::SUPERLINE); + write_in_space(V, max_glfont_size, .8, its(sc.stones[0]), player_colors[1], 1); + } + + if(current.captures[0] > 0) { + shiftmatrix V = shiftless(atscreenpos(rad * 3, rad, rad)); + write_in_space(V, max_glfont_size, .8, its(current.captures[0]), player_colors[1], 1); + } + + if(sc.owned_by[0] > 0) { + shiftmatrix V = shiftless(atscreenpos(rad, rad * 3, rad)); + write_in_space(V, max_glfont_size, .8, its(sc.owned_by[0]), player_colors[1], 1); + } + + if(sc.stones[1] > 0) { + shiftmatrix V = shiftless(atscreenpos(vid.xres-rad, rad, rad)); + queuepolyat(V, cgi.shHugeDisk, player_colors[1], PPR::SUPERLINE); + write_in_space(V, max_glfont_size, .8, its(sc.stones[1]), player_colors[0], 1); + } + + if(current.captures[1] > 0) { + shiftmatrix V = shiftless(atscreenpos(vid.xres - rad * 3, rad, rad)); + write_in_space(V, max_glfont_size, .8, its(current.captures[1]), player_colors[0], 1); + } + + if(sc.owned_by[1] > 0) { + shiftmatrix V = shiftless(atscreenpos(vid.xres - rad, rad * 3, rad)); + write_in_space(V, max_glfont_size, .8, its(sc.owned_by[1]), player_colors[1], 1); + } + + if(sc.owned_by[2] > 0) { + shiftmatrix V = shiftless(atscreenpos(rad, vid.yres - rad, rad)); + write_in_space(V, max_glfont_size, .8, its(sc.owned_by[2]), player_colors[2], 1); + } + + if(sc.owned_by[3] > 0) { + shiftmatrix V = shiftless(atscreenpos(rad, vid.yres - rad, rad)); + write_in_space(V, max_glfont_size, .8, its(sc.owned_by[3]), player_colors[3], 1); + } + + + quickqueue(); + println(hlog, "should be drawn"); + } + void take_shot() { #if AEGIS if(cur) { @@ -217,7 +293,7 @@ void take_shot() { #endif else if(!menubased) { println(hlog, "taking test screenshot"); - shot::take("go-test.png"); + shot::take("go-test.png", go_screenshot_content); } } @@ -515,7 +591,7 @@ void accept_command(string s) { "of [where] - the area is free\n" "oc [where] - the area is common\n" "oauto - own automatically\n" - "score - view the score\n" + "score - view the score (score on/off to include the score in screenshots)\n" "hires - take a 1000x1000 screenshot\n" "restart - restart\n" "bring-unrectified x y -- restart on unrectified GP(x,y) Bring surface\n" @@ -553,23 +629,19 @@ void accept_command(string s) { } if(tokens[0] == "score") { - array owned_by, stones; - for(int i=0; i<4; i++) - owned_by[i] = stones[i] = 0; - - for(int i=0; i