diff options
author | Nathan Vance <nathav63@gmail.com> | 2015-02-20 13:23:57 -0500 |
---|---|---|
committer | Nathan Vance <nathav63@gmail.com> | 2015-02-20 13:23:57 -0500 |
commit | 1d79e77722dd8f6a1f0f08128bdd9b361e309f55 (patch) | |
tree | 7e085fa54e44b1424b8e1e36db0feb3b3d1c7898 /wonder.c | |
parent | added a basic view for wonders (diff) | |
download | 7w-1d79e77722dd8f6a1f0f08128bdd9b361e309f55.tar.gz 7w-1d79e77722dd8f6a1f0f08128bdd9b361e309f55.tar.bz2 7w-1d79e77722dd8f6a1f0f08128bdd9b361e309f55.zip |
Started backend for game view
Diffstat (limited to 'wonder.c')
-rw-r--r-- | wonder.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -4,6 +4,8 @@ int* cards_getcost(int wonder, int stage); //remember the stage offset! int* cards_getproduction(int wonder, int stage); char* cards_getname(int wonder, int stage); //stage should always be 0 char* cards_specialmessage(int wonder, int stage); +char* getname(int res); +int cards_gettype(int wonder, int stage); //stage is 0 int data_getwonder(int p); int data_getwonderside(int p); void io_printborder(int x, int y); @@ -30,6 +32,7 @@ void print_wonder(int x, int y, int player, int cursor) { io_printborder(x, y++); y = io_printtext(x, y, 29, cards_getname(data_getwonder(player), 0)); + y = io_printtext(x, y, 29, cat("Produces 1 ", getname(cards_gettype(data_getwonder(player), 0)))); int i; for(i = 0; wonder_hasstage(data_getwonder(player), data_getwonderside(player), i); i++) { char *text = cat("Stage ", itoa(i+1)); |