From 7c3ee246fb626ab09b3b05055efdfaf3a00e60e7 Mon Sep 17 00:00:00 2001 From: Franklin Wei Date: Mon, 23 Jun 2014 17:04:30 -0400 Subject: Fixed more bugs, added more features :) --- location.h | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) (limited to 'location.h') diff --git a/location.h b/location.h index 57c9b0d..974da64 100644 --- a/location.h +++ b/location.h @@ -1,25 +1,27 @@ /* provide the GTNW with some geographical data to draw the missiles */ +enum player_t { USA=1, USSR }; struct location_t { const char* name; int x; int y; /* x,y-coords on the map */ + enum player_t owner; }; struct location_t world[]={ /* US cities */ - {"las vegas", 5, 7}, - {"seattle", 3, 2}, - {"new york", 34, 5}, - {"new orleans", 25, 10}, - {"washington", 33, 6}, - {"washington dc", 33, 6}, - {"winston-salem", 30, 7}, - {"san francisco", 1, 6}, - {"chicago", 24, 4}, - {"miami", 32, 11}, + {"las vegas", 5, 7, USA}, + {"seattle", 3, 2, USA}, + {"new york", 34, 5, USA}, + {"new orleans", 25, 10, USA}, + {"washington", 33, 6, USA}, + {"washington dc", 33, 6, USA}, + {"winston-salem", 30, 7, USA}, + {"san francisco", 1, 6, USA}, + {"chicago", 24, 4, USA}, + {"miami", 32, 11, USA}, /* Soviet cities */ /* NOTE: These are not neccessarily correct. I simply eyed them relative to Murmansk */ - {"murmansk", 74, 1}, - {"moscow", 70, 5}, - {"minsk", 66, 4}, + {"murmansk", 74, 1, USSR}, + {"moscow", 70, 5, USSR}, + {"minsk", 66, 4, USSR}, }; -- cgit v1.1