From 1d79e77722dd8f6a1f0f08128bdd9b361e309f55 Mon Sep 17 00:00:00 2001 From: Nathan Vance Date: Fri, 20 Feb 2015 13:23:57 -0500 Subject: Started backend for game view --- wonder.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'wonder.c') diff --git a/wonder.c b/wonder.c index 282fe3f..5fa2cc2 100644 --- a/wonder.c +++ b/wonder.c @@ -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)); -- cgit