defines.h 1.94 KB
Newer Older
1 2
/*
    Copyright (C) 1998-2001 Andreas Zehender <az@azweb.de>
3 4 5 6 7 8 9 10 11 12 13 14 15 16

    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
*/
17

Arto Hytönen's avatar
Arto Hytönen committed
18 19
#ifndef KSPACEDUEL_DEFINES_H
#define KSPACEDUEL_DEFINES_H
20

Arto Hytönen's avatar
Arto Hytönen committed
21
// #include <qnamespace.h>
22

23 24
#define IDS_PAUSE 0
#define IDS_MAIN 1
Andreas Zehender's avatar
Andreas Zehender committed
25 26 27 28 29 30 31 32 33 34 35 36

#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"

37
#define MV_SVG_FILE "sprites/default_theme.svgz"
Dirk Rathlev's avatar
Dirk Rathlev committed
38

39 40
#define MV_SHIP1 "ship_red"
#define MV_SHIP2 "ship_blue"
Dirk Rathlev's avatar
Dirk Rathlev committed
41

42 43
#define MV_BULLET1 "bullet_red"
#define MV_BULLET2 "bullet_blue"
Dirk Rathlev's avatar
Dirk Rathlev committed
44

45 46
#define MV_MINE1 "mine_red00"
#define MV_MINE2 "mine_blue00"
Dirk Rathlev's avatar
Dirk Rathlev committed
47

48 49 50 51 52 53
#define MV_SUN "sun"

#define MV_POWERBULLET "pbullet"
#define MV_POWERMINE "pmine"
#define MV_POWERSHIELD "pshield"
#define MV_POWERENERGY "penergy"
Andreas Zehender's avatar
Andreas Zehender committed
54

Andreas Zehender's avatar
Andreas Zehender committed
55 56 57 58 59
#define DEF_WIDTH 640
#define DEF_HEIGHT 480

#define EXPLOSION_TIME 7

Dirk Rathlev's avatar
Dirk Rathlev committed
60
#define S_BASE QGraphicsItem::UserType
Andreas Zehender's avatar
Andreas Zehender committed
61 62 63 64 65
#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
Andreas Zehender's avatar
Andreas Zehender committed
66
#define S_POWERUP S_BASE+5
Andreas Zehender's avatar
Andreas Zehender committed
67

68
#define SHOTDIST 28 //14
Andreas Zehender's avatar
Andreas Zehender committed
69
#define EPSILON 0.1
Dirk Rathlev's avatar
Dirk Rathlev committed
70
#define PI180 57.296f // 180/Pi
Andreas Zehender's avatar
Andreas Zehender committed
71

72 73 74 75
#define MAX_HP 99
#define MAX_ENERGY 99.9
#define MAX_VELOCITY 20

Dirk Rathlev's avatar
Dirk Rathlev committed
76 77 78 79
#define ID_EXPLOSION	1351
#define ID_MINE1	1352
#define ID_MINE2	1353
#define ID_MINEEXPLO	1354
Arto Hytönen's avatar
Arto Hytönen committed
80 81

#endif // KSPACEDUEL_DEFINES_H