Debian Codegraph @

src/jj1/planet/jj1planet.h

raw symbols SCIP
1
2 /**
3 *
4 * @file jj1planet.h
5 *
6 * Part of the OpenJazz project
7 *
8 * @par History:
9 * - 3rd February 2009: Created planet.h
10 * - 1st August 2012: Renamed planet.h to jj1planet.h
11 *
12 * @par Licence:
13 * Copyright (c) 2009-2017 AJ Thomson
14 *
15 * OpenJazz is distributed under the terms of
16 * the GNU General Public License, version 2.0
17 *
18 */
19
20
21 #ifndef _PLANET_H
22 #define _PLANET_H
23
24
25 #include "io/gfx/sprite.h"
26
27 #ifdef OJ_SDL3
28 #include <SDL3/SDL.h>
29 #else
30 #include <SDL.h>
31 #endif
32
33 // Class
34
35 /// Planet approach sequence
36 class JJ1Planet {
37
38 private:
39 SDL_Color palette[MAX_PALETTE_COLORS]; /// Palette
40 Sprite sprite; /// Planet image
41 char* name; /// Planet name
42 int id; /// World number
43
44 public:
45 JJ1Planet (char * fileName, int previous);
46 ~JJ1Planet ();
47
48 int getId ();
49 int play ();
50
51 };
52
53 #endif
54