The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Classes | Functions
game_end_exceptions.hpp File Reference

Contains the exception interfaces used to signal completion of a scenario, campaign or turn. More...

#include "lua_jailbreak_exception.hpp"
#include "utils/make_enum.hpp"
#include <string>
#include <exception>
#include <boost/optional.hpp>
Include dependency graph for game_end_exceptions.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  quit_game_exception
 
struct  transient_end_level
 The non-persistent part of end_level_data. More...
 
struct  end_level_data
 Additional information on the game outcome which can be provided by WML. More...
 

Functions

 MAKE_ENUM (LEVEL_RESULT,(VICTORY,"victory")(DEFEAT,"defeat")(QUIT,"quit")(OBSERVER_END,"observer_end")) class return_to_play_side_exception
 Exception used to escape form the ai or ui code to playsingle_controller::play_side. More...
 
const char * what () const throw ()
 
void throw_quit_game_exception ()
 

Detailed Description

Contains the exception interfaces used to signal completion of a scenario, campaign or turn.

Definition in file game_end_exceptions.hpp.

Function Documentation

MAKE_ENUM ( LEVEL_RESULT  ,
(VICTORY,"victory")(DEFEAT,"defeat")(QUIT,"quit")(OBSERVER_END,"observer_end")   
)

Exception used to escape form the ai or ui code to playsingle_controller::play_side.

Never thrown during replays.

Definition at line 35 of file game_end_exceptions.hpp.

void throw_quit_game_exception ( )
inlineprivate
const char* what ( ) const
throw (
)

Definition at line 55 of file game_end_exceptions.hpp.

Referenced by auxgetinfo(), kname(), luaL_execresult(), and start_capture().