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
|
/*
Copyright (C) 1998-2001 Andreas Zehender <az@azweb.de>
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 KSPACEDUEL_DEFINES_H
#define KSPACEDUEL_DEFINES_H
// #include <qnamespace.h>
#define IDS_PAUSE 1
#define IDS_MAIN 2
#define PlayerKeyLeft 0
#define PlayerKeyRight 1
#define PlayerKeyAcc 2
#define PlayerKeyShot 3
#define PlayerKeyMine 4
#define PlayerKeyNum 5
#define ROTNUM 64
#define MV_BACKGROUND "sprites/backgr.png"
#define MV_SVG_FILE "sprites/default_theme.svgz"
#define MV_SHIP1 "ship_red"
#define MV_SHIP2 "ship_blue"
#define MV_BULLET1 "bullet_red"
#define MV_BULLET2 "bullet_blue"
#define MV_MINE1 "mine_red00"
#define MV_MINE2 "mine_blue00"
#define MV_SUN "sun"
#define MV_POWERBULLET "pbullet"
#define MV_POWERMINE "pmine"
#define MV_POWERSHIELD "pshield"
#define MV_POWERENERGY "penergy"
#define DEF_WIDTH 640
#define DEF_HEIGHT 480
#define EXPLOSION_TIME 7
#define S_BASE QGraphicsItem::UserType
#define S_SUN S_BASE+0
#define S_SHIP S_BASE+1
#define S_BULLET S_BASE+2
#define S_MINE S_BASE+3
#define S_EXPLOSION S_BASE+4
#define S_POWERUP S_BASE+5
#define SHOTDIST 28 //14
#define EPSILON 0.1
#define PI180 57.296f // 180/Pi
#define MAX_HP 99
#define MAX_ENERGY 99.9
#define MAX_VELOCITY 20
#define GAME_START_SHORTCUT Qt::Key_Space
#define ID_EXPLOSION 1351
#define ID_MINE1 1352
#define ID_MINE2 1353
#define ID_MINEEXPLO 1354
#endif // KSPACEDUEL_DEFINES_H
|