From fb1871333736e17196ee0bb72a7dc86aabfd55f4 Mon Sep 17 00:00:00 2001 From: Franklin Wei Date: Mon, 23 Jun 2014 11:48:01 -0400 Subject: added geodata --- location.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 location.h diff --git a/location.h b/location.h new file mode 100644 index 0000000..6fd05f2 --- /dev/null +++ b/location.h @@ -0,0 +1,23 @@ +/* provide the GTNW with some geographical data to draw the missiles */ +struct location_t { + const char* name; + int x, y; /* x,y-coords on the map */ +}; +struct location_t world[]={ + /* US cities */ + {"las vegas", 5, 7}, + {"seattle", 3, 2}, + {"new york", 35, 4}, + {"new orleans", 25, 10}, + {"washington", 33, 6}, + {"washington dc", 33, 6}, + {"winston-salem", 30, 7}, + {"san francisco", 1, 6}, + {"chicago", 26, 4}, + + /* Soviet cities */ + /* NOTE: These are not neccessarily correct. I simply eyed them relative to Murmansk */ + {"murmansk", 2, 73}, + {"moscow", 5, 70}, + {"minsk", 4, 66}, +}; -- cgit v1.1