playcampaign.hpp

Go to the documentation of this file.
00001 /* $Id: playcampaign.hpp 25333 2008-03-30 13:49:03Z jhinrichs $ */
00002 /*
00003    Copyright (C) 2003-2005 by David White <dave@whitevine.net>
00004    Copyright (C) 2005 - 2008 by Philippe Plantier <ayin@anathas.org>
00005    Part of the Battle for Wesnoth Project http://www.wesnoth.org
00006 
00007    This program is free software; you can redistribute it and/or modify
00008    it under the terms of the GNU General Public License version 2
00009    or 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 playcampaign.hpp
00017 //!
00018 
00019 #ifndef PLAYCAMPAIGN_H_INCLUDED
00020 #define PLAYCAMPAIGN_H_INCLUDED
00021 
00022 #include "menu_events.hpp"
00023 
00024 class display;
00025 class game_state;
00026 class config;
00027 struct upload_log;
00028 
00029 enum io_type_t {
00030     IO_NONE,
00031     IO_SERVER,
00032     IO_CLIENT
00033 };
00034 
00035 LEVEL_RESULT play_game(display& disp, game_state& state,
00036         const config& game_config,
00037         upload_log &log,
00038         io_type_t io_type=IO_NONE,
00039         bool skip_replay = false);
00040 
00041 
00042 void play_replay(display& disp, game_state& state,
00043         const config& game_config, CVideo& video);
00044 
00045 #endif // PLAYCAMPAIGN_H_INCLUDED
00046 

Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs