00001 /* $Id: playcampaign.hpp 52533 2012-01-07 02:35:17Z shadowmaster $ */ 00002 /* 00003 Copyright (C) 2003-2005 by David White <dave@whitevine.net> 00004 Copyright (C) 2005 - 2012 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 as published by 00009 the Free Software Foundation; either version 2 of the License, or 00010 (at your option) any later version. 00011 This program is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY. 00013 00014 See the COPYING file for more details. 00015 */ 00016 00017 /** @file */ 00018 00019 #ifndef PLAYCAMPAIGN_H_INCLUDED 00020 #define PLAYCAMPAIGN_H_INCLUDED 00021 00022 #include "game_end_exceptions.hpp" 00023 00024 class display; 00025 class game_state; 00026 class config; 00027 class CVideo; 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 io_type_t io_type=IO_NONE, 00038 bool skip_replay = false); 00039 00040 00041 void play_replay(display& disp, game_state& state, 00042 const config& game_config, CVideo& video); 00043 00044 #endif // PLAYCAMPAIGN_H_INCLUDED 00045
| Generated by doxygen 1.7.1 on Fri May 25 2012 01:03:08 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |