File: locations.h

package info (click to toggle)
tennix 1.1-2
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 6,720 kB
  • sloc: ansic: 2,906; cpp: 2,333; python: 275; objc: 245; makefile: 125
file content (176 lines) | stat: -rw-r--r-- 3,806 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176

/**
 *
 * Tennix! SDL Port
 * Copyright (C) 2003, 2007, 2008, 2009 Thomas Perl <thp@thpinfo.com>
 * 
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
 * MA  02110-1301, USA.
 *
 **/

#ifndef __LOCATIONS_H
#define __LOCATIONS_H

#include "game.h"
#include "graphics.h"

static Location locations[] = {
    {
        /* Australian Open, http://en.wikipedia.org/wiki/Australian_Open */
        "Margaret Court Arena",
        "Melbourne Park",
        "Melbourne",
        GR_CTT_GRASS,
        6000,
        "Plexicushion",
        GR_LOC_MARGARET_COURT_ARENA,
        1,
        422,
        187,
        true,
        false,
        0,
        0,
    },
    {
        /* French Open, http://en.wikipedia.org/wiki/French_Open */
        "Stade Roland-Garros",
        "16th arrondissement",
        "Paris",
        GR_CTT_CLAY,
        8000,
        "terre battue",
        GR_LOC_STADE_ROLAND_GARROS,
        1,
        227,
        51,
        true,
        false,
        10,
        0,
    },
    {
        /* http://en.wikipedia.org/wiki/The_Championships,_Wimbledon */
        "Court No 1",
        "Wimbledon",
        "London",
        GR_CTT_GRASS,
        14000,
        "ryegrass",
        GR_LOC_COURT_NO_1,
        1,
        225,
        46,
        true,
        false,
        50,
        1,
    },
    {
        /* US Open, http://en.wikipedia.org/wiki/US_Open_(tennis) */
        "Arthur Ashe Stadium",
        "Flushing Meadows",
        "New York City",
        GR_CTT_HARD,
        22547,
        "acrylic hard",
        GR_LOC_ARTHUR_ASHE_STADIUM,
        1,
        125,
        64,
        true,
        false,
        0,
        2,
    },

#ifdef NONFREE_LOCATIONS
    {
        /* Bunabhainneadar Tennis Club  */
        "Tennis Club Bunabhainneadar",
        "Husinish",
        "North Harris",
        GR_CTT_GRASS,
        30,
        "artificial grass",
        GR_LOC_TRAINING_CAMP,
        1,
        218,
        37,
        false,
        false,
        0,
        0,
    },
#if 0
    /* We don't have permission for the following locations just yet... */
    {
        /* Austrian Open in Kitzbuhel, http://www.austrianopen.eu/ */
        "Center Court",
        "Sportpark Golfclub",
        "Kitzbuhel",
        GR_CTT_CLAY,
        4500,
        "clay",
        GR_LOC_AUSTRIAN_OPEN,
        1,
        243,
        53,
        true,
        false,
        0,
        0,
    },
    {
        /* http://en.wikipedia.org/wiki/Olympic_Green_Tennis_Centre */
        "Main Court",
        "Olympic Green Tennis Center",
        "Beijing",
        GR_CTT_HARD,
        10000,
        "deco turf", /* http://tinyurl.com/agwpje */
        GR_LOC_OLYMPIC_GREEN_TENNIS,
        1,
        384,
        64,
        true,
        false,
        0,
        0,
    },
#endif
#endif

    /* End marker */
    { NULL, NULL, NULL, 0, 0, NULL, 0, 0, 0, 0, false, false, 0, 0 }
};

unsigned int location_count()
{
    static unsigned int location_count = 0;

    if (location_count == 0) {
        while (locations[location_count].name != NULL) {
            location_count++;
        }
    }

    return location_count;
}


#endif