The Battle for Wesnoth  1.19.5+dev
Public Member Functions | List of all members
return_to_play_side_exception Class Referencefinal

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

#include <game_end_exceptions.hpp>

Inheritance diagram for return_to_play_side_exception:

Public Member Functions

 return_to_play_side_exception ()
 
const char * what () const noexcept
 
- Public Member Functions inherited from lua_jailbreak_exception
virtual ~lua_jailbreak_exception () noexcept
 
void store () const noexcept
 Stores a copy the current exception to be rethrown. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from lua_jailbreak_exception
static void rethrow ()
 Rethrows the stored exception. More...
 
- Static Public Attributes inherited from lua_jailbreak_exception
static int jail_depth = 0
 Depth of recursive luaW_pcall_internal() function calls. More...
 
- Static Protected Attributes inherited from lua_jailbreak_exception
static lua_jailbreak_exceptionjailbreak_exception = nullptr
 The exception to be rethrown. More...
 

Detailed Description

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

Never thrown during replays.

Definition at line 37 of file game_end_exceptions.hpp.

Constructor & Destructor Documentation

◆ return_to_play_side_exception()

return_to_play_side_exception::return_to_play_side_exception ( )
inline

Definition at line 41 of file game_end_exceptions.hpp.

References lua_jailbreak_exception::store().

Member Function Documentation

◆ what()

const char* return_to_play_side_exception::what ( ) const
inlinenoexcept

Definition at line 47 of file game_end_exceptions.hpp.


The documentation for this class was generated from the following file: