/* * Copyright (C) 2023 Christopher J. Howard * * This file is part of Antkeeper source code. * * Antkeeper source code is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Antkeeper source code is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Antkeeper source code. If not, see . */ #ifndef ANTKEEPER_GAME_STATE_BOOT_HPP #define ANTKEEPER_GAME_STATE_BOOT_HPP #include "game/state/base.hpp" #include "game/context.hpp" #include namespace game { namespace state { /** * Boots the game up on construction, and down on destruction. */ class boot: public game::state::base { public: /** * Boots up the game. * * @param ctx Game context. * @param argc Command line argument count. * @param argv Command line argument vector. */ boot(game::context& ctx, int argc, char** argv); /** * Boots down the game. */ virtual ~boot(); private: void parse_arguments(int argc, char** argv); void setup_resources(); void load_settings(); void load_strings(); void setup_window(); void setup_rendering(); void setup_audio(); void setup_scenes(); void setup_animation(); void setup_entities(); void setup_systems(); void setup_controls(); void setup_ui(); void setup_debugging(); void setup_loop(); void loop(); void shutdown_audio(); // Command line options std::optional option_continue; std::optional option_data; std::optional option_fullscreen; std::optional option_new_game; std::optional option_quick_start; std::optional option_reset; std::optional option_v_sync; std::optional option_windowed; }; } // namespace state } // namespace game #endif // ANTKEEPER_GAME_STATE_BOOT_HPP