mp_game_settings.hpp

Go to the documentation of this file.
00001 /* $Id: mp_game_settings.hpp 54051 2012-04-30 21:52:38Z brilliand $ */
00002 /*
00003    Copyright (C) 2003 - 2012 by Jörg Hinrichs
00004    Part of the Battle for Wesnoth Project http://www.wesnoth.org/
00005 
00006    This program is free software; you can redistribute it and/or modify
00007    it under the terms of the GNU General Public License as published by
00008    the Free Software Foundation; either version 2 of the License, or
00009    (at your option) any later version.
00010    This program is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY.
00012 
00013    See the COPYING file for more details.
00014 */
00015 
00016 /** @file */
00017 
00018 #ifndef MP_GAME_SETTINGS_HPP_INCLUDED
00019 #define MP_GAME_SETTINGS_HPP_INCLUDED
00020 
00021 #include "config.hpp"
00022 #include "savegame_config.hpp"
00023 
00024 struct mp_game_settings : public savegame::savegame_config
00025 {
00026     mp_game_settings();
00027     mp_game_settings(const config& cfg);
00028     mp_game_settings(const mp_game_settings& settings);
00029 
00030     void reset();
00031 
00032     void set_from_config(const config& game_cfg);
00033     config to_config() const;
00034 
00035     // The items returned while configuring the game
00036 
00037     std::string name;
00038     std::string password;
00039     std::string hash;
00040     std::string mp_era;
00041     std::string mp_scenario;
00042 
00043     int village_gold;
00044     int village_support;
00045     int xp_modifier;
00046     int mp_countdown_init_time;
00047     int mp_countdown_reservoir_time;
00048     int mp_countdown_turn_bonus;
00049     int mp_countdown_action_bonus;
00050     bool mp_countdown;
00051     bool use_map_settings;
00052     bool random_start_time;
00053     bool fog_game;
00054     bool shroud_game;
00055     bool allow_observers;
00056     bool shuffle_sides;
00057     bool share_view;
00058     bool share_maps;
00059 
00060     bool saved_game;
00061 
00062     /**
00063      * If the game is to be randomly generated, the map generator
00064      * will create the scenario data in this variable
00065      */
00066     config scenario_data;
00067 };
00068 
00069 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Fri May 25 2012 01:03:05 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs