1 | /* |
2 | Copyright (C) 1998-2001 Andreas Zehender <az@azweb.de> |
3 | |
4 | it under the terms of the GNU General Public License as published by |
5 | the Free Software Foundation; either version 2 of the License, or |
6 | (at your option) any later version. |
7 | |
8 | This program is distributed in the hope that it will be useful, |
9 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
10 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | GNU General Public License for more details. |
12 | |
13 | You should have received a copy of the GNU General Public License |
14 | along with this program; if not, write to the Free Software |
15 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
16 | */ |
17 | |
18 | #ifndef KSPACEDUEL_DEFINES_H |
19 | #define KSPACEDUEL_DEFINES_H |
20 | |
21 | // #include <qnamespace.h> |
22 | |
23 | #define IDS_PAUSE 1 |
24 | #define IDS_MAIN 2 |
25 | |
26 | #define PlayerKeyLeft 0 |
27 | #define PlayerKeyRight 1 |
28 | #define PlayerKeyAcc 2 |
29 | #define PlayerKeyShot 3 |
30 | #define PlayerKeyMine 4 |
31 | #define PlayerKeyNum 5 |
32 | |
33 | #define ROTNUM 64 |
34 | |
35 | #define MV_BACKGROUND "sprites/backgr.png" |
36 | |
37 | #define MV_SVG_FILE "sprites/default_theme.svgz" |
38 | |
39 | #define MV_SHIP1 "ship_red" |
40 | #define MV_SHIP2 "ship_blue" |
41 | |
42 | #define MV_BULLET1 "bullet_red" |
43 | #define MV_BULLET2 "bullet_blue" |
44 | |
45 | #define MV_MINE1 "mine_red00" |
46 | #define MV_MINE2 "mine_blue00" |
47 | |
48 | #define MV_SUN "sun" |
49 | |
50 | #define MV_POWERBULLET "pbullet" |
51 | #define MV_POWERMINE "pmine" |
52 | #define MV_POWERSHIELD "pshield" |
53 | #define MV_POWERENERGY "penergy" |
54 | |
55 | #define DEF_WIDTH 640 |
56 | #define DEF_HEIGHT 480 |
57 | |
58 | #define EXPLOSION_TIME 7 |
59 | |
60 | #define S_BASE QGraphicsItem::UserType |
61 | #define S_SUN S_BASE+0 |
62 | #define S_SHIP S_BASE+1 |
63 | #define S_BULLET S_BASE+2 |
64 | #define S_MINE S_BASE+3 |
65 | #define S_EXPLOSION S_BASE+4 |
66 | #define S_POWERUP S_BASE+5 |
67 | |
68 | #define SHOTDIST 28 //14 |
69 | #define EPSILON 0.1 |
70 | #define PI180 57.296f // 180/Pi |
71 | |
72 | #define MAX_HP 99 |
73 | #define MAX_ENERGY 99.9 |
74 | #define MAX_VELOCITY 20 |
75 | |
76 | #define GAME_START_SHORTCUT Qt::Key_Space |
77 | |
78 | #define ID_EXPLOSION 1351 |
79 | #define ID_MINE1 1352 |
80 | #define ID_MINE2 1353 |
81 | #define ID_MINEEXPLO 1354 |
82 | |
83 | #endif // KSPACEDUEL_DEFINES_H |
84 | |