aboutsummaryrefslogtreecommitdiff
path: root/location.h
diff options
context:
space:
mode:
authorFranklin Wei <frankhwei536@gmail.com>2014-06-23 17:04:30 -0400
committerFranklin Wei <frankhwei536@gmail.com>2014-06-23 17:04:30 -0400
commit7c3ee246fb626ab09b3b05055efdfaf3a00e60e7 (patch)
tree231d914a2677fdf8e466c972b62b4d9632698aa9 /location.h
parent35e1fd6820cd05c180e180d0ec61457a9f31e196 (diff)
downloadwargames-server-7c3ee246fb626ab09b3b05055efdfaf3a00e60e7.zip
wargames-server-7c3ee246fb626ab09b3b05055efdfaf3a00e60e7.tar.gz
wargames-server-7c3ee246fb626ab09b3b05055efdfaf3a00e60e7.tar.bz2
wargames-server-7c3ee246fb626ab09b3b05055efdfaf3a00e60e7.tar.xz
Fixed more bugs, added more features :)
Diffstat (limited to 'location.h')
-rw-r--r--location.h28
1 files changed, 15 insertions, 13 deletions
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},
};