New world map location selector screen
[tennix.git] / locations.h
blobd461c5fe0c308811aa447436d1018dc9e3224dc4
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
45 /* French Open, http://en.wikipedia.org/wiki/French_Open */
46 "Stade Roland-Garros",
47 "16th arrondissement",
48 "Paris",
49 GR_CTT_CLAY,
50 8000,
51 "terre battue",
52 GR_LOC_STADE_ROLAND_GARROS,
54 227,
58 /* http://en.wikipedia.org/wiki/The_Championships,_Wimbledon */
59 "Court No 1",
60 "Wimbledon",
61 "London",
62 GR_CTT_GRASS,
63 14000,
64 "ryegrass",
65 GR_LOC_COURT_NO_1,
67 225,
71 /* US Open, http://en.wikipedia.org/wiki/US_Open_(tennis) */
72 "Arthur Ashe Stadium",
73 "Flushing Meadows",
74 "New York City",
75 GR_CTT_HARD,
76 22547,
77 "acrylic hard",
78 GR_LOC_ARTHUR_ASHE_STADIUM,
80 125,
84 /* End marker */
85 { NULL, NULL, NULL, 0, 0, NULL, 0, 0, 0, 0 }
88 int location_count()
90 static int location_count = 0;
92 if (location_count == 0) {
93 while (locations[location_count].name != NULL) {
94 location_count++;
98 return location_count;
102 #endif