New input selection UI + Mouse support, updated TODO list
[tennix.git] / locations.h
bloba771e5a1113faaaa780ba6852a0e4d0cf6f70ba5
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 /* Bunabhainneadar Tennis Club */
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
104 /* Austrian Open in Kitzbuhel, http://www.austrianopen.eu/ */
105 "Center Court",
106 "Sportpark Golfclub",
107 "Kitzbuhel",
108 GR_CTT_CLAY,
109 4500,
110 "clay",
111 GR_LOC_AUSTRIAN_OPEN,
113 243,
115 true
118 /* http://en.wikipedia.org/wiki/Olympic_Green_Tennis_Centre */
119 "Main Court",
120 "Olympic Green Tennis Center",
121 "Beijing",
122 GR_CTT_HARD,
123 10000,
124 "deco turf", /* http://tinyurl.com/agwpje */
125 GR_LOC_OLYMPIC_GREEN_TENNIS,
127 384,
129 true
131 #endif
133 /* End marker */
134 { NULL, NULL, NULL, 0, 0, NULL, 0, 0, 0, 0, false }
137 unsigned int location_count()
139 static unsigned int location_count = 0;
141 if (location_count == 0) {
142 while (locations[location_count].name != NULL) {
143 location_count++;
147 return location_count;
151 #endif