1 /*
2     SPDX-FileCopyrightText: 1998-2001 Andreas Zehender <az@azweb.de>
3 
4     SPDX-License-Identifier: GPL-2.0-or-later
5 */
6 
7 #ifndef KSPACEDUEL_DEFINES_H
8 #define KSPACEDUEL_DEFINES_H
9 
10 // #include <qnamespace.h>
11 
12 #define IDS_PAUSE 0
13 #define IDS_MAIN 1
14 
15 #define PlayerKeyLeft  0
16 #define PlayerKeyRight 1
17 #define PlayerKeyAcc   2
18 #define PlayerKeyShot  3
19 #define PlayerKeyMine  4
20 #define PlayerKeyNum   5
21 
22 #define ROTNUM 64
23 
24 #define MV_BACKGROUND "sprites/backgr.png"
25 
26 #define MV_SVG_FILE "sprites/default_theme.svgz"
27 
28 #define MV_SHIP1 "ship_red"
29 #define MV_SHIP2 "ship_blue"
30 
31 #define MV_BULLET1 "bullet_red"
32 #define MV_BULLET2 "bullet_blue"
33 
34 #define MV_MINE1 "mine_red00"
35 #define MV_MINE2 "mine_blue00"
36 
37 #define MV_SUN "sun"
38 
39 #define MV_POWERBULLET "pbullet"
40 #define MV_POWERMINE "pmine"
41 #define MV_POWERSHIELD "pshield"
42 #define MV_POWERENERGY "penergy"
43 
44 #define DEF_WIDTH 640
45 #define DEF_HEIGHT 480
46 
47 #define EXPLOSION_TIME 7
48 
49 #define S_BASE QGraphicsItem::UserType
50 #define S_SUN S_BASE+0
51 #define S_SHIP S_BASE+1
52 #define S_BULLET S_BASE+2
53 #define S_MINE S_BASE+3
54 #define S_EXPLOSION S_BASE+4
55 #define S_POWERUP S_BASE+5
56 
57 #define SHOTDIST 28 //14
58 #define EPSILON 0.1
59 #define PI180 57.296f // 180/Pi
60 
61 #define MAX_HP 99
62 #define MAX_ENERGY 99.9
63 #define MAX_VELOCITY 20
64 
65 #define ID_EXPLOSION	1351
66 #define ID_MINE1	1352
67 #define ID_MINE2	1353
68 #define ID_MINEEXPLO	1354
69 
70 #endif // KSPACEDUEL_DEFINES_H
71