1786aa540492200ff5c8098bc2bacca404fa6976
[tennix.git] / locations.h
blob1786aa540492200ff5c8098bc2bacca404fa6976
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,
44 false,
49 /* French Open, http://en.wikipedia.org/wiki/French_Open */
50 "Stade Roland-Garros",
51 "16th arrondissement",
52 "Paris",
53 GR_CTT_CLAY,
54 8000,
55 "terre battue",
56 GR_LOC_STADE_ROLAND_GARROS,
58 227,
59 51,
60 true,
61 false,
62 10,
66 /* http://en.wikipedia.org/wiki/The_Championships,_Wimbledon */
67 "Court No 1",
68 "Wimbledon",
69 "London",
70 GR_CTT_GRASS,
71 14000,
72 "ryegrass",
73 GR_LOC_COURT_NO_1,
75 225,
76 46,
77 true,
78 false,
79 50,
83 /* US Open, http://en.wikipedia.org/wiki/US_Open_(tennis) */
84 "Arthur Ashe Stadium",
85 "Flushing Meadows",
86 "New York City",
87 GR_CTT_HARD,
88 22547,
89 "acrylic hard",
90 GR_LOC_ARTHUR_ASHE_STADIUM,
92 125,
93 64,
94 true,
95 false,
100 #ifdef NONFREE_LOCATIONS
102 /* Bunabhainneadar Tennis Club */
103 "Tennis Club Bunabhainneadar",
104 "Husinish",
105 "North Harris",
106 GR_CTT_GRASS,
108 "artificial grass",
109 GR_LOC_TRAINING_CAMP,
111 218,
113 false,
114 false,
118 #if 0
119 /* We don't have permission for the following locations just yet... */
121 /* Austrian Open in Kitzbuhel, http://www.austrianopen.eu/ */
122 "Center Court",
123 "Sportpark Golfclub",
124 "Kitzbuhel",
125 GR_CTT_CLAY,
126 4500,
127 "clay",
128 GR_LOC_AUSTRIAN_OPEN,
130 243,
132 true,
133 false,
138 /* http://en.wikipedia.org/wiki/Olympic_Green_Tennis_Centre */
139 "Main Court",
140 "Olympic Green Tennis Center",
141 "Beijing",
142 GR_CTT_HARD,
143 10000,
144 "deco turf", /* http://tinyurl.com/agwpje */
145 GR_LOC_OLYMPIC_GREEN_TENNIS,
147 384,
149 true,
150 false,
154 #endif
155 #endif
157 /* End marker */
158 { NULL, NULL, NULL, 0, 0, NULL, 0, 0, 0, 0, false }
161 unsigned int location_count()
163 static unsigned int location_count = 0;
165 if (location_count == 0) {
166 while (locations[location_count].name != NULL) {
167 location_count++;
171 return location_count;
175 #endif