diff options
| author | Franklin Wei <franklin@fwei.tk> | 2014-06-23 11:48:01 -0400 |
|---|---|---|
| committer | Franklin Wei <franklin@fwei.tk> | 2014-06-23 11:48:01 -0400 |
| commit | fb1871333736e17196ee0bb72a7dc86aabfd55f4 (patch) | |
| tree | 5b63ead5e0e14bb48d7af42ea7c7951bfdbf8714 | |
| parent | 719be73360ebf8a65038a90ea82ea4e290759df1 (diff) | |
| download | wargames-server-fb1871333736e17196ee0bb72a7dc86aabfd55f4.zip wargames-server-fb1871333736e17196ee0bb72a7dc86aabfd55f4.tar.gz wargames-server-fb1871333736e17196ee0bb72a7dc86aabfd55f4.tar.bz2 wargames-server-fb1871333736e17196ee0bb72a7dc86aabfd55f4.tar.xz | |
added geodata
| -rw-r--r-- | location.h | 23 |
1 files changed, 23 insertions, 0 deletions
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}, +}; |