#include <gamestatus.hpp>


Public Member Functions | |
| game_classification () | |
| game_classification (const config &cfg) | |
| game_classification (const game_classification &gc) | |
| config | to_config () const |
Public Attributes | |
| std::string | label |
| Name of the game (e.g. | |
| std::string | parent |
| Parent of the game (for save-threading purposes). | |
| std::string | version |
| Version game was created with. | |
| std::string | campaign_type |
| Type of the game - campaign, multiplayer etc. | |
| std::string | campaign_define |
| If there is a define the campaign uses to customize data. | |
| std::vector< std::string > | campaign_xtra_defines |
| more customization of data | |
| std::string | campaign |
| the campaign being played | |
| std::string | history |
| ancestral IDs | |
| std::string | abbrev |
| the campaign abbreviation | |
| std::string | scenario |
| the scenario being played | |
| std::string | next_scenario |
| the scenario coming next (for campaigns) | |
| std::string | completion |
| running. | |
| bool | end_credits |
| whether to show the standard credits at the end | |
| std::string | end_text |
| end-of-campaign text | |
| unsigned int | end_text_duration |
| for how long the end-of-campaign text is shown | |
| std::string | difficulty |
| The difficulty level the game is being played on. | |
Definition at line 40 of file gamestatus.hpp.
| game_classification::game_classification | ( | ) |
Definition at line 63 of file gamestatus.cpp.
| game_classification::game_classification | ( | const config & | cfg | ) |
Definition at line 83 of file gamestatus.cpp.
| game_classification::game_classification | ( | const game_classification & | gc | ) |
Definition at line 103 of file gamestatus.cpp.
| config game_classification::to_config | ( | ) | const [virtual] |
Implements savegame::savegame_config.
Definition at line 124 of file gamestatus.cpp.
References abbrev, campaign, campaign_define, campaign_type, campaign_xtra_defines, completion, difficulty, end_credits, end_text, end_text_duration, history, utils::join(), label, next_scenario, parent, scenario, str_cast(), and game_config::version.
Referenced by game_state::write_config().


| std::string game_classification::abbrev |
the campaign abbreviation
Definition at line 58 of file gamestatus.hpp.
Referenced by game_controller::new_campaign(), play_game(), to_config(), and game_state::write_snapshot().
| std::string game_classification::campaign |
the campaign being played
Definition at line 56 of file gamestatus.hpp.
Referenced by game_controller::launch_game(), game_controller::new_campaign(), to_config(), and game_state::write_snapshot().
| std::string game_classification::campaign_define |
If there is a define the campaign uses to customize data.
Definition at line 53 of file gamestatus.hpp.
Referenced by game_controller::launch_game(), savegame::loadgame::load_game(), game_controller::load_game(), game_controller::new_campaign(), game_controller::play_multiplayer(), game_controller::play_test(), game_controller::set_tutorial(), to_config(), and game_state::write_snapshot().
| std::string game_classification::campaign_type |
Type of the game - campaign, multiplayer etc.
Definition at line 52 of file gamestatus.hpp.
Referenced by game_controller::launch_game(), savegame::loadgame::load_game(), game_controller::load_game(), savegame::loadgame::load_multiplayer_game(), game_controller::new_campaign(), test_utils::play_scenario::play(), play_game(), game_controller::play_multiplayer(), game_controller::play_multiplayer_mode(), play_replay(), game_controller::play_test(), game_controller::set_tutorial(), events::menu_handler::status_table(), playsingle_controller::store_gold(), to_config(), game_state::write_config(), and game_state::write_snapshot().
| std::vector<std::string> game_classification::campaign_xtra_defines |
more customization of data
Definition at line 54 of file gamestatus.hpp.
Referenced by game_controller::launch_game(), savegame::loadgame::load_game(), game_controller::load_game(), game_controller::new_campaign(), to_config(), and game_state::write_snapshot().
| std::string game_classification::completion |
running.
victory, or defeat
Definition at line 61 of file gamestatus.hpp.
Referenced by playmp_controller::linger(), play_game(), playsingle_controller::play_scenario(), playsingle_controller::playsingle_controller(), to_config(), game_state::write_snapshot(), and set_completion::~set_completion().
| std::string game_classification::difficulty |
The difficulty level the game is being played on.
Definition at line 65 of file gamestatus.hpp.
Referenced by savegame::loadgame::load_game(), game_controller::load_game(), game_controller::new_campaign(), ai::testing_ai_default::recruitment_phase::recruit_usage(), ai::ai_default_recruitment_stage::recruit_usage(), to_config(), and game_state::write_snapshot().
whether to show the standard credits at the end
Definition at line 62 of file gamestatus.hpp.
Referenced by game_controller::launch_game(), to_config(), WML_HANDLER_FUNCTION(), and game_state::write_snapshot().
| std::string game_classification::end_text |
end-of-campaign text
Definition at line 63 of file gamestatus.hpp.
Referenced by game_controller::launch_game(), game_controller::new_campaign(), to_config(), WML_HANDLER_FUNCTION(), and game_state::write_snapshot().
| unsigned int game_classification::end_text_duration |
for how long the end-of-campaign text is shown
Definition at line 64 of file gamestatus.hpp.
Referenced by game_controller::launch_game(), game_controller::new_campaign(), to_config(), WML_HANDLER_FUNCTION(), and game_state::write_snapshot().
| std::string game_classification::history |
ancestral IDs
Definition at line 57 of file gamestatus.hpp.
Referenced by to_config(), and game_state::write_snapshot().
| std::string game_classification::label |
Name of the game (e.g.
name of save file).
Definition at line 49 of file gamestatus.hpp.
Referenced by savegame::autosave_savegame::create_filename(), play_controller::expand_autosaves(), savegame::savegame::finish_save_game(), play_game(), play_replay(), savegame::scenariostart_savegame::scenariostart_savegame(), to_config(), and game_state::write_snapshot().
| std::string game_classification::next_scenario |
the scenario coming next (for campaigns)
Definition at line 60 of file gamestatus.hpp.
Referenced by events::console_handler::do_choose_level(), events::console_handler::do_next_level(), game_state::game_state(), play_game(), playsingle_controller::store_gold(), to_config(), WML_HANDLER_FUNCTION(), and game_state::write_snapshot().
| std::string game_classification::parent |
Parent of the game (for save-threading purposes).
Definition at line 50 of file gamestatus.hpp.
Referenced by savegame::savegame::save_game(), and to_config().
| std::string game_classification::scenario |
the scenario being played
Definition at line 59 of file gamestatus.hpp.
Referenced by game_state::game_state(), game_controller::new_campaign(), test_utils::play_scenario::play(), play_game(), game_controller::play_multiplayer_mode(), play_replay(), game_controller::play_test(), game_controller::set_tutorial(), mp::wait::start_game(), to_config(), and game_state::write_snapshot().
| std::string game_classification::version |
Version game was created with.
Definition at line 51 of file gamestatus.hpp.
Referenced by savegame::loadgame::check_version_compatibility(), and savegame::loadgame::load_game().
| Generated by doxygen 1.7.1 on Thu May 24 2012 01:13:50 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |