| 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_H |
| 25 | |
| 26 | |
| 27 | #include "player/player.h" |
| 28 | |
| 29 | #include "OpenJazz.h" |
| 30 | |
| 31 | // Available options in config file |
| 32 | struct SetupOptions { |
| 33 | bool valid; |
| 34 | int videoWidth; |
| 35 | int videoHeight; |
| 36 | bool fullScreen; |
| 37 | int videoScale; |
| 38 | scalerType scaleMethod; |
| 39 | }; |
| 40 | |
| 41 | |
| 42 | // Class |
| 43 | |
| 44 | /// Configuration |
| 45 | class Setup { |
| 46 | |
| 47 | public: |
| 48 | char* characterName; |
| 49 | unsigned char characterCols[PCOLOURS]; |
| 50 | bool manyBirds; |
| 51 | bool leaveUnneeded; |
| 52 | bool slowMotion; |
| 53 | hudType hudStyle; |
| 54 | |
| 55 | Setup (); |
| 56 | ~Setup (); |
| 57 | |
| 58 | SetupOptions load (); |
| 59 | void save (); |
| 60 | |
| 61 | }; |
| 62 | |
| 63 | |
| 64 | // Variable |
| 65 | |
| 66 | EXTERN Setup setup; |
| 67 | |
| 68 | #endif |
| 69 |