| 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_Hcxx . . $ `src/jj1/planet/jj1planet.h:22:9`! |
| 23 | |
| 24 | |
| 25 | #include "io/gfx/sprite.h"cxx . . $ `<file>/src/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 JJ1Planetcxx . . $ JJ1Planet# { |
| 37 | |
| 38 | private: |
| 39 | SDL_Color palettecxx . . $ JJ1Planet#palette.[MAX_PALETTE_COLORScxx . . $ `src/OpenJazz.h:71:9`!]; /// Palette |
| 40 | Spritecxx . . $ Sprite# spritecxx . . $ JJ1Planet#sprite.; /// Planet image |
| 41 | char* namecxx . . $ JJ1Planet#name.; /// Planet name |
| 42 | int idcxx . . $ JJ1Planet#id.; /// World number |
| 43 | |
| 44 | public: |
| 45 | JJ1Planetcxx . . $ JJ1Planet#JJ1Planet(a07d8cccb7673f5a). (char * fileName, int previous); |
| 46 | ~cxx . . $ JJ1Planet#`~JJ1Planet`(49f6e7a06ebc5aa8).JJ1Planetcxx . . $ JJ1Planet# (); |
| 47 | |
| 48 | int getIdcxx . . $ JJ1Planet#getId(b126dc7c1de90089). (); |
| 49 | int playcxx . . $ JJ1Planet#play(b126dc7c1de90089). (); |
| 50 | |
| 51 | }; |
| 52 | |
| 53 | #endif |
| 54 |