Subversion Repositories shark

Rev

Rev 1085 | Details | Compare with Previous | 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
 *   (see the web pages for full authors list)
11
 *
12
 * ReTiS Lab (Scuola Superiore S.Anna - Pisa - Italy)
13
 *
14
 * http://www.sssup.it
15
 * http://retis.sssup.it
16
 * http://shark.sssup.it
17
 */
18
 
19
/*
20
 ------------
21
 CVS :        $Id: iniziali.h,v 1.1.1.1 2002-09-02 09:37:44 pj Exp $
22
 
23
 File:        $File$
24
 Revision:    $Revision: 1.1.1.1 $
25
 Last update: $Date: 2002-09-02 09:37:44 $
26
 ------------
27
*/
28
 
29
/*
30
 * Copyright (C) 2000 Merli Andrea and Zucchetti Alessandro
31
 *
32
 * This program is free software; you can redistribute it and/or modify
33
 * it under the terms of the GNU General Public License as published by
34
 * the Free Software Foundation; either version 2 of the License, or
35
 * (at your option) any later version.
36
 *
37
 * This program is distributed in the hope that it will be useful,
38
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
39
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
40
 * GNU General Public License for more details.
41
 *
42
 * You should have received a copy of the GNU General Public License
43
 * along with this program; if not, write to the Free Software
44
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
45
 *
46
 */
47
 
48
 
49
#define YMENU    10             /* menu level                   */
50
#define XMIN     1
51
#define XMAX     799
52
#define YMIN     100
53
#define YMAX     599
54
#define D        27
55
#define VEL      10              /* linear velocity (def. = 6)   */
56
#define ANG      15             /* angolo massimo sterzata (15) */
57
#define ESC      27             /* ASCII code of ESCAPE key     */
58
#define MAX_P    10             /* max number of calc          */
59
#define MAX_B    1
60
#define GROUP_SOFT 4
61
#define GROUP_PLAY 2
62
#define GROUP_BALL 3
63
#define PERIOD_BALL 30000
64
#define PERIOD_CALC 100000
65
#define PERIOD_PORT 30000
66
#define CALC_WCET 5000
67
#define PORT_WCET 4000
68
#define BALL_WCET 5000
69
#define BALL_RADIUS 5
70
#define VER_RES 600
71
#define ORI_RES 800
72
#define COL_DEP 16
73
#define FREE_MODE 0           /*il giocatore corre palla al piede*/
74
#define PASS_MODE 1           /*il giocatore passa la palla rasoterra*/
75
#define NO_BALL_MODE 4
76
#define PENALTY_MODE_BLUE 5
77
#define PENALTY_MODE_WHITE 6
78
#define RESTART 6
79
#define CANC 370
80
#define RLEFT 1  /*RUN LEFT*/
81
#define RDOWN 3  /*RUN DOWN*/
82
#define RUP 5    /*RUN UP*/
83
#define RRIGHT 7 /*RUN RIGHT*/
84
#define RRUP 9   /*RUN RIGHT UP*/
85
#define RRDW 15  /*RUN RIGHT DOWN*/
86
#define RLUP 11  /*RUN LEFT UP*/
87
#define RLDW 13  /*RUN LEFT DOWN*/
88
#define RLEFT2 17  /*RUN LEFT*/
89
#define RDOWN2 19  /*RUN DOWN*/
90
#define RUP2 21    /*RUN UP*/
91
#define RRIGHT2 23 /*RUN RIGHT*/
92
#define RRUP2 25   /*RUN RIGHT UP*/
93
#define RRDW2 27  /*RUN RIGHT DOWN*/
94
#define RLUP2 29  /*RUN LEFT UP*/
95
#define RLDW2 31  /*RUN LEFT DOWN*/
96
#define NO_ACT 0
97
#define GOAL_ACT 2
98
#define MENU_ACT 3
99
#define NO_PENALTY 0
100
#define PENALTY 1