| 1 | |
| 2 | /** |
| 3 | * |
| 4 | * @file setup.h |
| 5 | * |
| 6 | * Part of the OpenJazz project |
| 7 | * |
| 8 | * @par History: |
| 9 | * - 23rd August 2005: Created OpenJazz.h |
| 10 | * - 3rd February 2009: Created menu.h from parts of OpenJazz.h |
| 11 | * - 21st July 2013: Created setup.h from parts of menu.h |
| 12 | * |
| 13 | * @par Licence: |
| 14 | * Copyright (c) 2005-2013 AJ Thomson |
| 15 | * Copyright (c) 2015-2026 Carsten Teibes |
| 16 | * |
| 17 | * OpenJazz is distributed under the terms of |
| 18 | * the GNU General Public License, version 2.0 |
| 19 | * |
| 20 | */ |
| 21 | |
| 22 | |
| 23 | #ifndef _SETUP_H |
| 24 | #define _SETUP_Hcxx . . $ `src/setup.h:24:9`! |
| 25 | |
| 26 | |
| 27 | #include "player/player.h"cxx . . $ `<file>/src/player/player.h`/ |
| 28 | |
| 29 | #include "OpenJazz.h"cxx . . $ `<file>/src/OpenJazz.h`/ |
| 30 | |
| 31 | // Available options in config file |
| 32 | struct SetupOptionscxx . . $ SetupOptions# { |
| 33 | bool validcxx . . $ SetupOptions#valid.; |
| 34 | int videoWidthcxx . . $ SetupOptions#videoWidth.; |
| 35 | int videoHeightcxx . . $ SetupOptions#videoHeight.; |
| 36 | bool fullScreencxx . . $ SetupOptions#fullScreen.; |
| 37 | int videoScalecxx . . $ SetupOptions#videoScale.; |
| 38 | scalerTypecxx . . $ scalerType# scaleMethodcxx . . $ SetupOptions#scaleMethod.; |
| 39 | }; |
| 40 | |
| 41 | |
| 42 | // Class |
| 43 | |
| 44 | /// Configuration |
| 45 | class Setupcxx . . $ Setup# { |
| 46 | |
| 47 | public: |
| 48 | char* characterNamecxx . . $ Setup#characterName.; |
| 49 | unsigned char characterColscxx . . $ Setup#characterCols.[PCOLOURScxx . . $ `src/player/player.h:48:9`!]; |
| 50 | bool manyBirdscxx . . $ Setup#manyBirds.; |
| 51 | bool leaveUnneededcxx . . $ Setup#leaveUnneeded.; |
| 52 | bool slowMotioncxx . . $ Setup#slowMotion.; |
| 53 | hudTypecxx . . $ hudType# hudStylecxx . . $ Setup#hudStyle.; |
| 54 | |
| 55 | Setupcxx . . $ Setup#Setup(49f6e7a06ebc5aa8). (); |
| 56 | ~cxx . . $ Setup#`~Setup`(49f6e7a06ebc5aa8).Setupcxx . . $ Setup# (); |
| 57 | |
| 58 | SetupOptionscxx . . $ SetupOptions# loadcxx . . $ Setup#load(48f624f2413f693b). (); |
| 59 | void savecxx . . $ Setup#save(49f6e7a06ebc5aa8). (); |
| 60 | |
| 61 | }; |
| 62 | |
| 63 | |
| 64 | // Variable |
| 65 | |
| 66 | EXTERNcxx . . $ `src/OpenJazz.h:38:10`! Setupcxx . . $ Setup# setupcxx . . $ setup.; |
| 67 | |
| 68 | #endif |
| 69 |