game_controller_new.hpp

Go to the documentation of this file.
00001 /* $Id: game_controller_new.hpp 52869 2012-02-03 20:18:33Z shadowmaster $ */
00002 /*
00003    Copyright (C) 2011 - 2012 by Lukasz Dobrogowski <lukasz.dobrogowski@gmail.com>
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 #ifndef GAME_CONTROLLER_NEW_HPP_INCLUDED
00017 #define GAME_CONTROLLER_NEW_HPP_INCLUDED
00018 #include "game_controller_abstract.hpp"
00019 
00020 #include "config.hpp"
00021 
00022 class game_controller_new : public game_controller_abstract
00023 {
00024 public:
00025     game_controller_new(const commandline_options& cmdline_opts);
00026     ~game_controller_new();
00027 
00028     bool init_config();
00029     bool play_test();
00030     bool play_multiplayer_mode();
00031     bool play_screenshot_mode();
00032 
00033     void reload_changed_game_config();
00034 
00035     bool is_loading() const;
00036     void clear_loaded_game();
00037     bool load_game();
00038     void set_tutorial();
00039 
00040     std::string jump_to_campaign_id() const;
00041     bool new_campaign();
00042     bool goto_campaign();
00043     bool goto_multiplayer();
00044     bool goto_editor();
00045 
00046     bool play_multiplayer();
00047     bool change_language();
00048 
00049     void show_preferences();
00050 
00051     void launch_game(RELOAD_GAME_DATA reload=RELOAD_DATA);
00052     void play_replay();
00053 
00054     editor::EXIT_STATUS start_editor();
00055 
00056     const config& game_config() const;
00057 
00058 private:
00059     config main_config_;
00060 
00061 };
00062 
00063 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

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