File indexing completed on 2022-09-27 13:19:23

0001 /*
0002     SPDX-FileCopyrightText: 1998-2001 Andreas Zehender <az@azweb.de>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #ifndef KSPACEDUEL_DEFINES_H
0008 #define KSPACEDUEL_DEFINES_H
0009 
0010 // #include <qnamespace.h>
0011 
0012 #define IDS_PAUSE 0
0013 #define IDS_MAIN 1
0014 
0015 #define PlayerKeyLeft  0
0016 #define PlayerKeyRight 1
0017 #define PlayerKeyAcc   2
0018 #define PlayerKeyShot  3
0019 #define PlayerKeyMine  4
0020 #define PlayerKeyNum   5
0021 
0022 #define ROTNUM 64
0023 
0024 #define MV_BACKGROUND "sprites/backgr.png"
0025 
0026 #define MV_SVG_FILE "sprites/default_theme.svgz"
0027 
0028 #define MV_SHIP1 "ship_red"
0029 #define MV_SHIP2 "ship_blue"
0030 
0031 #define MV_BULLET1 "bullet_red"
0032 #define MV_BULLET2 "bullet_blue"
0033 
0034 #define MV_MINE1 "mine_red00"
0035 #define MV_MINE2 "mine_blue00"
0036 
0037 #define MV_SUN "sun"
0038 
0039 #define MV_POWERBULLET "pbullet"
0040 #define MV_POWERMINE "pmine"
0041 #define MV_POWERSHIELD "pshield"
0042 #define MV_POWERENERGY "penergy"
0043 
0044 #define DEF_WIDTH 640
0045 #define DEF_HEIGHT 480
0046 
0047 #define EXPLOSION_TIME 7
0048 
0049 #define S_BASE QGraphicsItem::UserType
0050 #define S_SUN S_BASE+0
0051 #define S_SHIP S_BASE+1
0052 #define S_BULLET S_BASE+2
0053 #define S_MINE S_BASE+3
0054 #define S_EXPLOSION S_BASE+4
0055 #define S_POWERUP S_BASE+5
0056 
0057 #define SHOTDIST 28 //14
0058 #define EPSILON 0.1
0059 #define PI180 57.296f // 180/Pi
0060 
0061 #define MAX_HP 99
0062 #define MAX_ENERGY 99.9
0063 #define MAX_VELOCITY 20
0064 
0065 #define ID_EXPLOSION    1351
0066 #define ID_MINE1    1352
0067 #define ID_MINE2    1353
0068 #define ID_MINEEXPLO    1354
0069 
0070 #endif // KSPACEDUEL_DEFINES_H