forked from jaildesigner-jailgames/jaildoctors_dilemma
mogut options.section a SceneManager
This commit is contained in:
@@ -20,29 +20,6 @@ constexpr int convertVolume(int volume_percent) {
|
||||
}
|
||||
} // namespace VolumeHelpers
|
||||
|
||||
// Secciones del programa
|
||||
enum class Scene {
|
||||
LOGO,
|
||||
LOADING_SCREEN,
|
||||
TITLE,
|
||||
CREDITS,
|
||||
GAME,
|
||||
DEMO,
|
||||
GAME_OVER,
|
||||
ENDING,
|
||||
ENDING2,
|
||||
QUIT
|
||||
};
|
||||
|
||||
// Subsecciones
|
||||
enum class SceneOptions {
|
||||
NONE,
|
||||
LOGO_TO_INTRO,
|
||||
LOGO_TO_TITLE,
|
||||
TITLE_WITH_LOADING_SCREEN,
|
||||
TITLE_WITHOUT_LOADING_SCREEN
|
||||
};
|
||||
|
||||
// Posiciones de las notificaciones
|
||||
enum class NotificationPosition {
|
||||
UPPER_LEFT,
|
||||
@@ -125,22 +102,6 @@ struct Notification {
|
||||
}
|
||||
};
|
||||
|
||||
// Estructura para saber la seccion y subseccion del programa
|
||||
struct SceneState {
|
||||
Scene section;
|
||||
SceneOptions subsection;
|
||||
|
||||
// Constructor por defecto
|
||||
SceneState()
|
||||
: section(GameDefaults::SCENE),
|
||||
subsection(GameDefaults::SUBSECTION) {}
|
||||
|
||||
// Constructor
|
||||
SceneState(Scene scene, SceneOptions scene_options)
|
||||
: section(scene),
|
||||
subsection(scene_options) {}
|
||||
};
|
||||
|
||||
// Estructura para albergar trucos
|
||||
struct Cheat {
|
||||
enum class State : bool {
|
||||
@@ -362,7 +323,6 @@ extern Notification notifications; // Opciones relativas a las notificaciones;
|
||||
extern Window window; // Opciones relativas a la ventana
|
||||
extern Audio audio; // Opciones relativas al audio
|
||||
extern ControlScheme keys; // Teclas usadas para jugar
|
||||
extern SceneState section; // Sección actual del programa
|
||||
|
||||
// --- Funciones ---
|
||||
void init(); // Crea e inicializa las opciones del programa
|
||||
|
||||
Reference in New Issue
Block a user