Implement night for world map + automatic night mode
[tennix.git] / locations.h
blob79da2e2d097877a4a152134251d59b14591fd828
2 /**
4 * Tennix! SDL Port
5 * Copyright (C) 2003, 2007, 2008, 2009 Thomas Perl <thp@thpinfo.com>
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version 2
10 * of the License, or (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
20 * MA 02110-1301, USA.
22 **/
24 #ifndef __LOCATIONS_H
25 #define __LOCATIONS_H
27 #include "game.h"
28 #include "graphics.h"
30 static Location locations[] = {
32 /* Australian Open, http://en.wikipedia.org/wiki/Australian_Open */
33 "Margaret Court Arena",
34 "Melbourne Park",
35 "Melbourne",
36 GR_CTT_GRASS,
37 6000,
38 "Plexicushion",
39 GR_LOC_MARGARET_COURT_ARENA,
41 422,
42 187,
43 true
46 /* French Open, http://en.wikipedia.org/wiki/French_Open */
47 "Stade Roland-Garros",
48 "16th arrondissement",
49 "Paris",
50 GR_CTT_CLAY,
51 8000,
52 "terre battue",
53 GR_LOC_STADE_ROLAND_GARROS,
55 227,
56 51,
57 true
60 /* http://en.wikipedia.org/wiki/The_Championships,_Wimbledon */
61 "Court No 1",
62 "Wimbledon",
63 "London",
64 GR_CTT_GRASS,
65 14000,
66 "ryegrass",
67 GR_LOC_COURT_NO_1,
69 225,
70 46,
71 true
74 /* US Open, http://en.wikipedia.org/wiki/US_Open_(tennis) */
75 "Arthur Ashe Stadium",
76 "Flushing Meadows",
77 "New York City",
78 GR_CTT_HARD,
79 22547,
80 "acrylic hard",
81 GR_LOC_ARTHUR_ASHE_STADIUM,
83 125,
84 64,
85 true
88 #ifdef NONFREE_LOCATIONS
90 /* Training Camp Lung-Katah */
91 "Training Camp Bunabhainneadar",
92 "Husinish",
93 "North Harris",
94 GR_CTT_GRASS,
95 30,
96 "artificial grass",
97 GR_LOC_TRAINING_CAMP,
99 218,
101 false
103 #endif
105 /* End marker */
106 { NULL, NULL, NULL, 0, 0, NULL, 0, 0, 0, 0, false }
109 unsigned int location_count()
111 static unsigned int location_count = 0;
113 if (location_count == 0) {
114 while (locations[location_count].name != NULL) {
115 location_count++;
119 return location_count;
123 #endif