Subversion Repositories shark

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1085 pj 1
/*
2
 * Project: S.Ha.R.K.
3
 *
4
 * Coordinators:
5
 *   Giorgio Buttazzo    <giorgio@sssup.it>
6
 *   Paolo Gai           <pj@gandalf.sssup.it>
7
 *
8
 * Authors     :
9
 *   Paolo Gai           <pj@gandalf.sssup.it>
10
 *   Massimiliano Giorgi <massy@gandalf.sssup.it>
11
 *   Luca Abeni          <luca@gandalf.sssup.it>
12
 *   (see the web pages for full authors list)
13
 *
14
 * ReTiS Lab (Scuola Superiore S.Anna - Pisa - Italy)
15
 *
16
 * http://www.sssup.it
17
 * http://retis.sssup.it
18
 * http://shark.sssup.it
19
 */
20
 
21
 
22
/**
23
 ------------
24
 CVS :        $Id: tracks.c,v 1.1.1.1 2002-09-02 09:37:42 pj Exp $
25
 
26
 File:        $File$
27
 Revision:    $Revision: 1.1.1.1 $
28
 Last update: $Date: 2002-09-02 09:37:42 $
29
 ------------
30
**/
31
 
32
/*
33
 * Copyright (C) 2000 Marco Dallera and Marco Fiocca
34
 *
35
 * This program is free software; you can redistribute it and/or modify
36
 * it under the terms of the GNU General Public License as published by
37
 * the Free Software Foundation; either version 2 of the License, or
38
 * (at your option) any later version.
39
 *
40
 * This program is distributed in the hope that it will be useful,
41
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
42
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
43
 * GNU General Public License for more details.
44
 *
45
 * You should have received a copy of the GNU General Public License
46
 * along with this program; if not, write to the Free Software
47
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
48
 *
49
 */
50
 
51
/*
52
 *              AUTO
53
 *
54
 * Another Unuseful Track simulatOr
55
 *
56
 * Authors: Marco Dallera
57
 *          Marco Fiocca
58
 *
59
 */
60
 
61
/* -------------- */
62
/*  Track loader  */
63
/* -------------- */
64
 
65
#include "include/auto.h"
66
#include "include/const.h"
67
 
68
track track_list[TRACK_NUMBER];
69
 
70
int track_init()
71
{
72
  track demo1;
73
  track demo2;
74
  track brazil;
75
  track monaco;
76
 
77
  strcpy(demo1.name, "demo1.raw");
78
  demo1.pole_pos.x = 150;
79
  demo1.pole_pos.y = 35;
80
  demo1.pole_orient = 0.0;
81
  demo1.lap = CLOCK;
82
  demo1.selected = 0;
83
 
84
  strcpy(demo2.name, "demo2.raw");
85
  demo2.pole_pos.x = 150;
86
  demo2.pole_pos.y = 30;
87
  demo2.pole_orient = 0.0;
88
  demo2.lap = CLOCK;
89
  demo2.selected = 0;
90
 
91
  strcpy(brazil.name, "brazil.raw");
92
  brazil.pole_pos.x = 140;
93
  brazil.pole_pos.y = 185;
94
  brazil.pole_orient = 225.0;
95
  brazil.lap = ANTICLOCK;
96
  brazil.selected = 0;
97
 
98
  strcpy(monaco.name, "monaco.raw");
99
  monaco.pole_pos.x = 35;
100
  monaco.pole_pos.y = 315;
101
  monaco.pole_orient = 85.0;
102
  monaco.lap = CLOCK;
103
  monaco.selected = 0;
104
 
105
  track_list[0] = demo1;
106
  track_list[1] = demo2;
107
  track_list[2] = brazil;
108
  track_list[3] = monaco;
109
 
110
  return 0;
111
}