Debian Codegraph @

src/jj1/level/jj1bullet.h

raw symbols SCIP
1
2 /**
3 *
4 * @file jj1bullet.h
5 *
6 * Part of the OpenJazz project
7 *
8 * @par History:
9 * - 23rd August 2005: Created OpenJazz.h
10 * - 31st January 2006: Created level.h from parts of OpenJazz.h
11 * - 4th February 2009: Created events.h from parts of level.h
12 * - 11th February 2009: Created bullet.h from parts of events.h
13 * - 1st August 2012: Renamed bullet.h to jj1bullet.h
14 *
15 * @par Licence:
16 * Copyright (c) 2005-2012 AJ Thomson
17 *
18 * OpenJazz is distributed under the terms of
19 * the GNU General Public License, version 2.0
20 *
21 */
22
23
24 #ifndef _BULLET_H
25 #define _BULLET_Hcxx . . $ `src/jj1/level/jj1bullet.h:25:9`!
26
27
28 #include "level/movable.h"cxx . . $ `<file>/src/level/movable.h`/
29
30 #include "OpenJazz.h"cxx . . $ `<file>/src/OpenJazz.h`/
31
32
33 // Constants
34
35 // Indexes for elements of the bullet set
36 #define B_SPRITEcxx . . $ `src/jj1/level/jj1bullet.h:36:9`! 0
37 #define B_XSPEEDcxx . . $ `src/jj1/level/jj1bullet.h:37:9`! 4
38 #define B_YSPEEDcxx . . $ `src/jj1/level/jj1bullet.h:38:9`! 8
39 #define B_GRAVITYcxx . . $ `src/jj1/level/jj1bullet.h:39:9`! 12
40 #define B_FINISHANIMcxx . . $ `src/jj1/level/jj1bullet.h:40:9`! 16
41 #define B_FINISHSOUNDcxx . . $ `src/jj1/level/jj1bullet.h:41:9`! 17
42 #define B_BEHAVIOURcxx . . $ `src/jj1/level/jj1bullet.h:42:9`! 18
43 #define B_BEHAVIORcxx . . $ `src/jj1/level/jj1bullet.h:43:9`! 18
44 #define B_STARTSOUNDcxx . . $ `src/jj1/level/jj1bullet.h:44:9`! 19
45
46 // Survival time
47 #define T_BULLETcxx . . $ `src/jj1/level/jj1bullet.h:47:9`! 1000
48 #define T_TNTcxx . . $ `src/jj1/level/jj1bullet.h:48:9`! 300
49
50
51 // Classes
52
53 class JJ1Birdcxx . . $ JJ1Bird#;
54 class JJ1Eventcxx . . $ JJ1Event#;
55 class JJ1LevelPlayercxx . . $ JJ1LevelPlayer#;
56 class Spritecxx . . $ Sprite#;
57
58 /// JJ1Bullet
59 class JJ1Bulletcxx . . $ JJ1Bullet# : public Movablecxx . . $ Movable# {
60
61 private:
62 JJ1Bulletcxx . . $ JJ1Bullet#* nextcxx . . $ JJ1Bullet#next.; ///< The next bullet
63 JJ1LevelPlayercxx . . $ JJ1LevelPlayer#* sourcecxx . . $ JJ1Bullet#source.; ///< Source player. If NULL, was fired by an event
64 Spritecxx . . $ Sprite#* spritecxx . . $ JJ1Bullet#sprite.; ///< Sprite
65 signed char* setcxx . . $ JJ1Bullet#set.; ///< Bullet type properties
66 int directioncxx . . $ JJ1Bullet#direction.; ///< 0: Left, 1: Right, 2: L (lower), 3: R (lower)
67 unsigned int timecxx . . $ JJ1Bullet#time.; ///< Time at which the bullet will self-destruct
68
69 JJ1Bulletcxx . . $ JJ1Bullet#* removecxx . . $ JJ1Bullet#remove(f6cadfcf90bd3d3b). ();
70
71 public:
72 JJ1Bulletcxx . . $ JJ1Bullet#JJ1Bullet(a203ab6b566bf851). (JJ1Bulletcxx . . $ JJ1Bullet#* nextBullet, JJ1LevelPlayercxx . . $ JJ1LevelPlayer#* sourcePlayer, fixedcxx . . $ fixed# startX, fixedcxx . . $ fixed# startY, signed char *bullet, int newDirection, unsigned int ticks);
73 ~cxx . . $ JJ1Bullet#`~JJ1Bullet`(49f6e7a06ebc5aa8).JJ1Bulletcxx . . $ JJ1Bullet# ();
74
75 JJ1LevelPlayercxx . . $ JJ1LevelPlayer#* getSourcecxx . . $ JJ1Bullet#getSource(cf23ec4c0d6db922). ();
76 JJ1Bulletcxx . . $ JJ1Bullet#* stepcxx . . $ JJ1Bullet#step(c90693087d4d5c05). (unsigned int ticks);
77 void drawcxx . . $ JJ1Bullet#draw(d4f767463ce0a6b3). (int change);
78
79 };
80
81 #endif
82