diff options
author | Nathan Vance <nathav63@gmail.com> | 2015-02-28 00:18:29 -0500 |
---|---|---|
committer | Nathan Vance <nathav63@gmail.com> | 2015-02-28 00:18:29 -0500 |
commit | 68d09777d9f188b2ac69c98ccfdcc315037224fd (patch) | |
tree | 76d41617e8ec05be2afe50a8f1b3dd6660f32332 /wonder.c | |
parent | Added battles (diff) | |
download | 7w-68d09777d9f188b2ac69c98ccfdcc315037224fd.tar.gz 7w-68d09777d9f188b2ac69c98ccfdcc315037224fd.tar.bz2 7w-68d09777d9f188b2ac69c98ccfdcc315037224fd.zip |
added science to vp count; color to trades
Diffstat (limited to 'wonder.c')
-rw-r--r-- | wonder.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -1,4 +1,5 @@ #include "7w.h" +#include <stdio.h> int* cards_getcost(int wonder, int stage); //remember the stage offset! int* cards_getproduction(int wonder, int stage); @@ -22,6 +23,8 @@ int* data_getbuilt(int p); void io_printplain(int x, int y, char *s); int* data_getdefinites(int p); int** data_getindefinites(int p); +int data_gettotvps(int p); +int military_might(int player); int wonder_numstages(int player) { @@ -103,11 +106,14 @@ int print_wonder(int x, int y, int player, int cursor) //dir is 0 for none, 1 for east, 2 for west int print_wondersmall(int x, int y, int player, int selected, int dir) { + char s[28]; io_printborder(x, y++, 28); if(selected) io_printplain(28, y, "*"); if(dir == 1) io_printplain(29, y, "East"); if(dir == 2) io_printplain(29, y, "West"); y = io_printtext(x, y, 28, cards_getname(data_getwonder(player), 0)); + sprintf(s, "army: %-2d vp's: %-2d", military_might(player), data_gettotvps(player)); + y = io_printtext(x, y, 28, s); io_printborder(x, y, 28); return y; } |